Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Stored Procedures Containing Cursors Running Slow

$
0
0

I am migrating our SQL Server 2008 r2 databases to a more powerful server (more RAM, drive space and processors) but with the same version of SQL Server. On testing the stored procedures on the new server, those that contains a cursor run slower than the original server for example one that takes less than 1 minute to run on the old server takes more than 3 minutes on the new server.

If the stored procedure contains insert/updates commands without a cursor, it runs on the newer server faster compared to the current server, which I'd expect.

The databases have been restored to the new server from backup files copied from the current server. The drive structure between the 2 servers is the same (Drive c:\ and d:\ Raid 1. Log files on Drive d:\, Drive e:\ Raid5 and the data mdf files are stored here).

I've ran perfmon to identify if there is a problem and SQL Profiler but cannot a locate problem.

Can anyone advise?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>