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 |
akumar.ana06
Starting Member
4 Posts |
Posted - 2010-05-24 : 13:16:11
|
Hi. I have store procedure which works fine in test environment but executes too slow in production. We have MS SQL sever 8.00.760, SP3 in test and 8.00.2040, SP4 in production. Find below code for reference.Any help!declare @P1 intset @P1=-1declare @P2 intset @P2=0declare @P3 intset @P3=28688declare @P4 intset @P4=8193declare @P5 intset @P5=102exec sp_cursorprepexec @P1 output, @P2 output, N'@P1 decimal(38,0),@P2 decimal(38,0)', N'SELECT PARM_SEQ, MESSAGE_PARM FROM PS_MESSAGE_LOGPARM (READUNCOMMITTED) WHERE PROCESS_INSTANCE = @P1 AND MESSAGE_SEQ = @P2', @P3 output, @P4 output, @P5 output, 983843, 1select @P1, @P2, @P3, @P4, @P5Thanks,Best Regards,kumar. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|
|