Moving Stored Procedure to another database on same server

Assume the situation where we want to move all or some of the stored procudres to another database. May be for the purpose of back up or development environment to test or test to production. There are many possibilities for this situation.Here our first task will be to get the list of stored procedures, which …

Continue reading Moving Stored Procedure to another database on same server

Monitoring Memory and CPU utilization using TSQL

Understanding DB load pattern is a very important part of optimization. A good, stored procedure can perform bad during heavy load time and poorly written SP can perform good in idle time. Bottom line is your workload, memory and CPU availability are important consideration for DB optimization. We can use the below script to get …

Continue reading Monitoring Memory and CPU utilization using TSQL