I've got a stored procedure that runs a number of different queries. Most of these involve doing joins, updates, and inserts with tables on two different servers.
There are about 8 different queries that get run in this stored procedure. If I run them individually, there is one that takes 17 seconds and the rest are all less than one or two seconds. If I highlight all the code and run it, it takes about a minute. If I execute the stored procedure, it runs for at least 5 minutes.
Anything I can look for?
There are about 8 different queries that get run in this stored procedure. If I run them individually, there is one that takes 17 seconds and the rest are all less than one or two seconds. If I highlight all the code and run it, it takes about a minute. If I execute the stored procedure, it runs for at least 5 minutes.
Anything I can look for?