-
How to run a SQL query using command prompt without SQL SSMS
31 October 2019Introduction How to run a SQL query using command prompt without SQL SSMS Open CMD from Run and run the below command (CMD) to connect with Database engine. sqlcmd -S…
-
Find IP and Port using SQL SSMS
Find IP and Port using SQL SSMS Find IP and Port of a SQL Server from a client machine. The script will not provide all the information if you are…
-
Find user activity without any Auditing
28 October 2019How to find out user activity on database without any particular Auditing Sometime you may need to find out who ran some script or who is accessing the database or…
-
Latest service pack to SQL Server
Apply latest service pack to standalone SQL Server We have given a Microsoft SQL Server 2016 (RTM) – 13.0.1601.5 (X64) Enterprise Edition (64-bit) on Windows Server 2012 R2 Standard 6.3…
-
Find SQL Server/Instance details using SQL query
24 October 2019Scenario Sometimes you need to gather the SQL instance details in a proper format such as Server Name, Instance, Service account name. Today I am sharing a script that will…
-
Login failed for user ‘XXXX’ (Microsoft SQL Server, Error: 18456)
23 October 2019Scenario You often get complained that user is not able to connect to SQL server or Application is not able to connect to SQL for some reason. There might be…
-
Error : FILESTREAM feature is disable
17 October 2019Introduction Error – System.Data.Sqltypes.SqlClent.SqlError:FILESTREAM feature is disable. (Microsoft.SqlServer.Smo) Scenario A database backup from a test server provided to DBA team and asked to restore it on a pre-production SQL Server….
-
Run a Job on few specific dates of every month in SQL Server
16 October 2019Introduction As per business requirements, a report needs to generate four times every month. The report will generated by a Stored Procedure. So the DBA’s task is to execute the…
-
Install SQL Server 2008R2 on Windows 2012R2
15 October 2019Introduction Installing lower version SQL Server on a higher version of Windows Server may be problematic at times of installation. Recently we have faced such a scenario. We are sharing…
-
Unable to begin a Distributed Transaction
14 October 2019Problem When your application uses the distribution transaction then you may encounter below error. Error: The operation could not be performed because OLE DB provider “SQLNCLI11” for linked server “Linked_Server_Name”…