Viewing 15 posts - 751 through 765 (of 1,825 total)
First , make sure you are not vulnerable to SQL Injection. It sounds very likely you are. Get your supplier to sort that ASAP. To fix that...
June 29, 2010 at 7:14 am
Date data is NOT stored in a particular format.
Please see this link http://www.karaszi.com/SQLServer/info_datetime.asp
June 29, 2010 at 3:24 am
Please bear in mind that we have no knowledge of your data or the relationships within it , so to be presented with massive execution plans are be able...
June 28, 2010 at 4:39 pm
@Gail , thanks for clarifying. didnt seem right ...
@sam-3 , the most helpful thing you could do is slowly strip the query down. Once it is at the simplest...
June 28, 2010 at 10:36 am
Use of scalar UDF's is not a good idea either
http://sqlblogcasts.com/blogs/sqlandthelike/archive/2009/10/15/udf-overhead-a-simple-example.aspx
June 28, 2010 at 9:34 am
GilaMonster (6/28/2010)
Dave Ballantyne (6/28/2010)
The table STOREROOM has an estimated row count of 7 but actual of 250,000+.
That's a correct estimate.
7 rows (estimated) * 36876 (number of executions) = 258132...
June 28, 2010 at 9:27 am
Sure about that Gail ?
Difference in 2005 / 2008 Perhaps ?
This profiler trace screen shot is 2005.
Doesnt Look like the update statistics has invalidated the plan.
June 28, 2010 at 9:25 am
You sure about the stats ?
The table STOREROOM has an estimated row count of 7 but actual of 250,000+.
Update the statistics and issue sp_recompile "STOREROOM", to force the plan out...
June 28, 2010 at 9:08 am
I know *we* are on the same page here. Personally i dislike the word physical as that would imply that on the hardware, page 2 would follow page 1...
June 28, 2010 at 9:00 am
Please post execution plan and DDL as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 28, 2010 at 8:54 am
Hi ,
The consensus of opinion is that newid() provides a pretty good randomness factor.
So if you select top(100) * from <yourtable> order by newid() , you will get 100 random...
June 28, 2010 at 1:57 am
Jeff Moden (6/27/2010)(which
physicallysorts the data in the table)
Logically , i think you mean Jeff 😉
June 28, 2010 at 1:29 am
Can you show us the code you have tried so far , and where you are having difficulties?
June 28, 2010 at 1:25 am
Jeff Moden (6/27/2010)
Hmmmm.... in this day and age it seems to me that they could show a replay and have the audience vote on it in seconds.
Quick , get...
June 28, 2010 at 12:24 am
D.Oc (6/27/2010)
auf wiedersehen England!
At least it didnt all depend on a dodgy decision. Outclassed in pretty much every dept.
June 27, 2010 at 10:07 am
Viewing 15 posts - 751 through 765 (of 1,825 total)