Viewing 15 posts - 5,596 through 5,610 (of 5,841 total)
Hey, I have a client who's CEO is still hacking out code - - COMPLETELY OUTSIDE of the IT department's control processes no less!! :-))
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 8:28 am
Nice rant Jeff!! :-))
As for a cursor that also uses parallelism . . . YUCKO!!! If the threshhold for parallelism is still set at the default of...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 8:24 am
Is TCP/IP enabled for the sql server? Make sure Shared Memory network protocol is enabled and top of the list, then AS should use that preferentially since it is...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 8:19 am
1) There is a benefit to having a clustered index on an identity, even for single row lookups: you don't have to do a bookmark lookup to get to...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 8:18 am
Bob, where did you read that SET ROWCOUNT was deprecated in 2005? I only found this statement in BOL: Using SET ROWCOUNT will not affect DELETE, INSERT, and...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 8:08 am
The example I gave was not necessarily indicative of your situation. My example was a single table, filtered on a non-indexed column. IIRC, your OP had a query...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 6, 2007 at 6:40 am
Since you now bring up SAN, what is the layout of the LUNs and also the file placements for both the db that is having perf issues as well as...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 4:10 pm
1) Yep, you should ALWAYS use the CORRECT DATATYPE in TSQL. It really can make an INCREDIBLE difference in performance!!
2) In addition to MAXDOP 1, if you have 4+...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 1:46 pm
Anders, your suggestion to count matching rows first IS useful under a few specific circumstances. First and foremost is that the count MUST be able to use indexing to...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 1:29 pm
You can have 2000 and 2005 on same box. I believe it is recommended to install 2000 first in this situation.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 8:07 am
1) If you say SELECT TOP 10 from a table with a kajillion records and only 9 meet your where clause, you bet that sql server will exhaustively complete it's...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 7:15 am
1) Are there indexes on the table being inserted into? Index maintenance can cause more page splits and thus delays. Speaking of page splits, are your fill factors...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
September 5, 2007 at 7:01 am
Not sure what tests you did. Try this one. As you can see, the single-pass mechanism used by the partition query is significantly more efficient than the second...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
August 30, 2007 at 3:08 pm
good correction noeld. I missed that the first example didn't have the partitioning.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
August 30, 2007 at 1:19 pm
1) Why do you restrict the use of temp tables or table variables?
2) I think this is a better version of the rownumber code posted above. It avoids the...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
August 30, 2007 at 8:34 am
Viewing 15 posts - 5,596 through 5,610 (of 5,841 total)