Viewing 12 posts - 1 through 12 (of 12 total)
Parameter sniffing was the issue alright.
I added a parameter to the query and because it's run from a main SP I moved the first SQL statement to the main SP...
July 22, 2014 at 7:40 am
Thanks for that.
Yes, it will be a stored procedure, could you suggest the code as a SP please?
PS Removed NOLOCK!
July 22, 2014 at 4:33 am
The time is on the second select statement when @CutOffTid parameter is set by the first select. The first select runs instantly on its own.
Its like it's not treating the...
July 22, 2014 at 4:14 am
Unfortunately I don't have "showplan" permissions on the database agr.
But if I set the variable @CutOffTid to the value the first select statement returns then it runs instantly. To...
July 22, 2014 at 3:11 am
Thanks for the reply, It's int data type in both tables and a unique index in both tables.
July 21, 2014 at 4:15 pm
Is PIVOT not recognised in SQL 2000? Maybe its only, SQL 2005.....
July 29, 2013 at 12:25 pm
Super, that's sorted now through the GUI.
Thanks for your help.
Dave.
July 19, 2013 at 8:59 am
Yes, the transaction log seems to be limited to 99MB because it increases to this size from 10MB after truncation, how can I increase this or make it unlimited?
Thanks
July 19, 2013 at 8:52 am
Thanks for your reply Jeff.
The datatype char(2) in both tables and client is indexed on both tables. Here's the SQL which runs instantly but if I change @client to 'XX'...
July 4, 2013 at 12:35 pm
Thanks for your reply Chris.
Nothing gets returned using like U%
Thanks
Dave.
July 4, 2013 at 9:45 am
Thanks for your reply, I didn't realise that it runs an Alter SP command, I assumed it opened thge actual SP.
Thanks again!
dave
May 11, 2007 at 8:59 am
Viewing 12 posts - 1 through 12 (of 12 total)