Use below code and make necessary modifications to make it work as per your needs. I am extremely sorry that I couldn’t test below code.…
I had a requirement from application team that I should rename a database when the application is running and the transactions were happening. The reason…
Below workaround will help you incase if you wanna control SQL agent job steps based on a SQL query output. For eg: Suppose you have…
Below Query will help you read live file level Disk read and write information. WIll behandy for performance tuning capacity planning. select db.name,files.filename,* from sys.dm_io_virtual_file_stats(NULL,…
Once we had an issue in our environment. We had a maintenance activity on the Database server during a weekend and the server was shutdown…
Issue It’s quite common that we use detach-attach method to migrated SQL server databases from Windows Server 2000 or 2003 to Windows server 2008. During…
Issue Soon after installing reporting services for my SQL server 2012 on Windows 7, I got the error “User ‘DOMAIN\username’ does not have required permissions. Verify that sufficient…
I had a terrible issue with my wordpress website www.sherbaz.com. I was unable to submit any post for a long time because of this issue.…
Questions Explain SQL Server Failover Clustering? How do we check index Fragmentation? TSQL syntax for Index rebuild and reorg. Difference between the two. How users…
The Attached SQL Query can be safely used for rebuilding or reorganizing all indexes in a particular database based on the fragmentation level. Note: The…
You must be logged in to post a comment.