Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-02-24 : 19:34:39
|
| Carolyn writes "I am running Windows XP Professional version 2002 Service Pack 1 on my machine, accessing SQL Server 2000 on a Windows 2000, Service Pack 3 server.When I run my SPROC through Query Analyzer, it takes approximately 39 seconds to run. When I copy the query straight into a new query window in Query Analyzer it takes approximately 13 seconds to run. I have run the sp_recompile @objname = stpPalletBilling command on my stored procedure and still have the same problem.Why would the stored procedure be slower?Thanks for whatever help you can offer!" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-02-24 : 20:17:56
|
| Sometimes th query plan for an SP is different from that for a query.See what it is doing and try changing the way it is coded or giving a hint.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|