Thanks,Bill
BAM!! 2 sec. to run the sproc!!!!
Why would processing parameters cause the sproc to execute 300x slower?
I am going to add them back one at a time and see which one is causing the slowdown.
Still investigating.
I'll try the sproc without the LIKE...I suppose an IF block may work better.
The code column is indexed. Only one code would be passed if the user wanted the list limited.
Thanks for you attention on this, Greg. Much appreciated.
Bill
Who woulda thunk it?!?!?!
I have removed the LIKE and have followed another approach:
IF @itemcode = '' BEGIN 'run script without the Items.Code filter ENDELSE BEGIN 'run the script with the Items.Code = 'MyCode' ENDThanks, again, Greg!!Bill