Category Archives: SQL Server

How to operate multiple objects in SSMS (F7)

While working on a service restoration, we had to resume data movement on 100+ random databases. Generating TSQL is the best option but UI will be very quick and reliable. Biggest challenge with SSMS UI will be to perform the … Continue reading

Posted in SQL, SQL Server, SSMS, Uncategorized | Tagged , , | 1 Comment

Frequently used MSSQL Commands


Posted in commands, SQL Server, Uncategorized | Tagged , , , , , | 1 Comment

Best practices being DEVOPS in IT

Index: MSSQL Index naming recommendations:   PK_ for primary keys UK_ for unique keys IX_ for non clustered non unique indexes UX_ for unique indexes <index or key type>_<table name>_<column 1>_<column 2>_<column n>  

Posted in SQL Server, Uncategorized | Tagged , , | 1 Comment

SQL latest available patch reference

Best source for latest SQL Server patches: Ref 2: (Hotfix information is not updated) Option 3:

Posted in SQL Server, Uncategorized | Tagged , , | 1 Comment

How to Point in time Restore Azure SQL Database after deleting the database

Azure SQL Database has feature to restore the database to point in time when the database is live. When we have to move the database to different Server we end up deleting the database from old server, we can not … Continue reading

Posted in Azure, Powershell, SQL, SQL Server, Uncategorized | Tagged , , , , | 2 Comments

Availability Group Fail Over date/time – TSQL

I have been using this quick script to verify AG Status Change details from error log.

Posted in High Availability, SQL, SQL Query, SQL Server, Uncategorized | Tagged , , , , , | Leave a comment

Most common challenges and solution with Availability group listener and multisubnetfailover

Industry started using SQL availability groups on most of their environments, DBA is coming across multiple issues related to AGListener connectivity. This blog explains 2 major challenges and solutions in detail: I recommend option-1 to enable client to use … Continue reading

Posted in Learn_Powershell, SQL, SQL Server, Uncategorized | Tagged , , , , , | Leave a comment