Viewing 15 posts - 1,786 through 1,800 (of 1,824 total)
Hmmm , get rid of the @ tables and use # tables, i think your dataload is to large for them.
Also make sure your statistics are up to date...
June 23, 2009 at 10:21 am
Please post the query plans and full SQL statement. Im guessing that its not columns per-se that cause the issue but possibly a bookmark lookup to retrieve them
June 23, 2009 at 9:05 am
No Problems , but the the way to REALLY confirm what parameters are being passed is with SQLProfiler, it would of highlighted this.
June 22, 2009 at 8:53 am
If you have do ask then you dont need to know 🙂
Basically they allow you to override the optimizers functionality to specify an execution path.
You only need to use...
June 22, 2009 at 8:49 am
Well, there has to be a difference some where.
Its either environmental (SET options) these can be seen in from sys.dm_exec_sessions or the parameters that are being passed. Dont...
June 22, 2009 at 7:16 am
And what parameters is it being called with,
Confirm with sql trace the exact parameters (including NULLS) that the webserver is passing.
June 22, 2009 at 5:49 am
Please post the full code, but at a guess it sounds like that the connections are using different ANSI_NULLS settings which could account for the difference.
June 22, 2009 at 3:52 am
Depends it you need to store the value or not,
presumably seq_no is partitioned by seqno so an identity column will not be suitable ? or will it ?
Try...
June 22, 2009 at 3:50 am
Does due date contain a time ? You cant separate out the time portion, try between 00:00 and 23:59.
Try this link for more info http://www.karaszi.com/SQLServer/info_datetime.asp
June 19, 2009 at 6:48 am
Thanks Paul , this gave me the expected result. But i need to test under different situations.
Which one will be better ? a cross apply or with cte ? i...
June 18, 2009 at 4:02 am
PS have u understood my problem?
I believe so , but i would encourage , and expect, you to understand the code and to ensure that the given solution works under...
June 18, 2009 at 3:23 am
Did you try my suggestion ?
It gives you that...
June 18, 2009 at 2:47 am
Assuming 2005 +
with ctedata(id,data,rownum)
as
(
Select id,data,row_number() over (partition by id order by data)
from tblData
)
select cteData.id,cteData.data
from cteData,
...
June 18, 2009 at 1:42 am
There are no sarg's on you update statement,
You probably meant to say
Update Table
Where current of CursorName
Take a look in books online for more details.
I would also argue that you dont...
June 17, 2009 at 6:37 am
NoLock is very dangerous if you dont understand the side effects
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/10/1280.aspx
June 17, 2009 at 4:16 am
Viewing 15 posts - 1,786 through 1,800 (of 1,824 total)