Viewing 15 posts - 5,941 through 5,955 (of 7,636 total)
chrisleonard (8/12/2008)
August 12, 2008 at 4:29 pm
Heh. You know, if you actually type "TPC Cursor" (with the quotes) into Google, the result is pretty funny.
August 12, 2008 at 2:47 pm
pino_daddy (8/12/2008)
I removed the "UN-NEEDED" UPPER clauses and BINGO, query runs in 3 seconds. Returns the...
August 12, 2008 at 1:21 pm
chrisleonard (8/12/2008)
In asking for an example of someplace where cursors were a preferred solution, did the referenct to TPC benchmarks not count?
No, because you did not (and still...
August 12, 2008 at 1:10 pm
Looking through the Execution Plan again, it does look like the UPPER() functions are the cause all those scans.
August 12, 2008 at 12:24 pm
pino_daddy (8/12/2008)
Sort order is the same in both Latin1 General CIAS
Well that's case-insensitive (accent sensitive) , so you should be able to take the UPPER's off (though it...
August 12, 2008 at 12:16 pm
Hopefully, its the same as Management Studio on 2005? Create the Query Plan output, then right-click in the output window and pick "Save As..."
August 12, 2008 at 12:08 pm
Also, this does not make a lot of sense to me:
LEFT OUTER JOIN SW_Booking_Setup ON 1=1
WHERE BH.order_date >= SW_Booking_Setup.CurrPeriodStart - 30
Why make a CROSS JOIN, call it an OUTER JOIN...
August 12, 2008 at 11:39 am
What COLLATION are you using? Is it the same in both environments?
I ask because those UPPER functions on your joins are likely killing any chance of using the indexes.
August 12, 2008 at 11:34 am
Thanks for the feedback, Mark.
Varchar(MAX) is one of the best things about SQL Server 2005, completely gets rid of the need for the BLOB's (Text, NText, etc.), meaning no more...
August 12, 2008 at 11:25 am
Since Views can have CTE's and CTE's can use Views, there is a lot of overlap between them. The real difference between them is where the SQL code resides.
If...
August 12, 2008 at 11:20 am
khushbu.kumar (8/11/2008)
some developer has written it .. and it has come to me for optimization.
still the query...
August 12, 2008 at 11:16 am
This is the solution that you want to use. VARCHAR(MAX) can be as large as any TEXT datatype and is superior in virtually every respect. You can add...
August 12, 2008 at 10:38 am
clive.norman (8/12/2008)
Do I or the purchaser of my program need a license from Microsoft in order for me to distribute it and for the small business to use it?
You do...
August 12, 2008 at 10:27 am
SQL Server 2005 Developer Edition should give you all of this (the DB stuff) and it is a great deal.
August 12, 2008 at 10:25 am
Viewing 15 posts - 5,941 through 5,955 (of 7,636 total)