Viewing 15 posts - 48,271 through 48,285 (of 49,571 total)
What's the data type of the column in the table?
November 7, 2007 at 12:37 am
CTEs are defined before the SQL statement that uses them, not in it. something like this
;with MyCTE (col1, col2, col3) AS (
SELECT ... FROM aTable
)
SELECT [some fields] FROM MyCTE...
November 7, 2007 at 12:37 am
They're english abbreviations. Means postscript. Thoughts added after something else, usually only partially related.
November 6, 2007 at 3:02 am
Depends on the query. In the example you give, you can't replace the inequality operator. The alternative you give is identical to the original in terms of how its executed...
November 6, 2007 at 2:53 am
Re your second example (SELECT theValue FROM #Sample WHERE theValue <> 2), one thing I learnt recently is that partial index scans (seek to a value, then scan from there...
November 6, 2007 at 1:09 am
rudy komacsar (11/5/2007)
Since DBAs are usually left out in the early formative stages of a project like requirements gathering, software selection and hardware acquisition and setup you get just that.
That...
November 6, 2007 at 12:44 am
If you think about it, there's no way that <> can be searchable. Searches are to find specific values, finding all except a specific value requires a scan
Imagine a telephone...
November 6, 2007 at 12:01 am
Take a look at the indexing on the Batch_Documents table, since it appears in all the deadlocks. Make sure that the updates and select are running as fast as possibel...
November 5, 2007 at 11:37 pm
You're creating table Countries3, but inserting into countries2. Is that a typo?
Are there any triggers on the table?
November 5, 2007 at 11:06 pm
I normally recomend that people stay away from query hints of any form unless they really, really know what they are doing and are sure that the hints help.
Even then,...
November 5, 2007 at 7:00 am
You can try the optimise for query hint, if there's a specific value that you usually use. Problem with that is if you pass in other values with vastly different...
November 5, 2007 at 6:38 am
Classic parameter sniffing problem.
When you use the value in the query (or a parameter), the optimiser, when it compiles the query, knows the value used in the condition, and can...
November 5, 2007 at 12:31 am
The optimiser can't properly see the results of the case statement at compile time and probably chooses worst possible case (column = column) where no index usage is possible.
The way...
November 2, 2007 at 5:25 am
Back on the topic of unused indexes.
The index usage DMV t4racks only since SQL last started. If an indx has not been used at all (no seeks, no scans, no...
November 2, 2007 at 2:14 am
Pam Brisjar (11/1/2007)
November 2, 2007 at 1:34 am
Viewing 15 posts - 48,271 through 48,285 (of 49,571 total)