Viewing 15 posts - 47,221 through 47,235 (of 49,571 total)
And if using SQL 2005, there's no need for code to reconstruct procedures from syscomments as you can seelct rather from sys.sql_modules, which does not split objects into 4000 character...
March 8, 2008 at 8:34 am
The only thing I can find on storage of Varchar(max) is that 'SQL decides' (Inside SQL Server 2005: T-sql Programming)
March 8, 2008 at 8:32 am
SELECT object_name(id) FROM syscomments where [text] like ....
March 7, 2008 at 1:52 pm
Jeff Moden (3/6/2008)
The join needs to be part of the covering index or you will only get a scan.
True, which is why I removed the suggestion about INCLUDE (and yes,...
March 7, 2008 at 1:45 pm
zubamark (3/7/2008)
2. Always put distinct in subquery.
Don't ever put a distinct in an IN or EXISTS subquery. It's meaningless and may cause SQL to do unnecessary work.
In terms of an...
March 7, 2008 at 1:32 pm
The timer is fairly accurate. If you want accurate timings, either use profiler to monitor your queries, or you can run SET STATISTICS TIME ON before you run the query,...
March 7, 2008 at 8:14 am
Agreed. If you love the job, the money will follow.
March 7, 2008 at 8:12 am
Check the full scans/sec counter.
From what I know, read-ahead reads are usually done when a table or index is scanned, and the storage engine fetches pages before they are requested,...
March 6, 2008 at 12:01 pm
Chris Morris (3/6/2008)
you can't reach the destination of 'best way' without going through 'first way' *.* Except Lynn, Steve, Jeff, Dave, Peso, Gail.....
Hell, no. The amount of times I...
March 6, 2008 at 11:45 am
Perhaps I should have said 'not used in the filters' rather than not in the where clause (since there's no where clause)
The red highlight is a join to a...
March 6, 2008 at 8:28 am
Loner (3/5/2008)
March 6, 2008 at 8:24 am
The index with ProductID first produces an index scan because ProductID is not one of the columns that are filtered on. A query can use an index seek if the...
March 6, 2008 at 7:28 am
A competant DBA. Even the Best Practices anaylser isn't foolproof
March 6, 2008 at 7:23 am
I need to confirm this, but I believe it is 'as long as it fits'. Will reseach and confirm or correct later
March 6, 2008 at 6:30 am
Viewing 15 posts - 47,221 through 47,235 (of 49,571 total)