Viewing 15 posts - 391 through 405 (of 1,413 total)
You are right, there is no built-in relational minus in SQL Server (SQL Server 2005 will have EXCEPT though). This code should do what you want:
SELECT *
FROM Table1
WHERE NOT EXISTS...
August 15, 2005 at 4:58 am
Duration simply shows the time it took from when a query started to when the results where returned. CPU shows the time the processor was busy executing the query. If...
August 15, 2005 at 4:53 am
SELECT Col1
FROM (SELECT A.Col1
FROM [Table1] A
UNION
SELECT B.Col1
FROM [Table2] B) foo
ORDER...
August 15, 2005 at 3:46 am
Actually i want to set the value of following constant
I assume you are talking about the dynamic property "NULL Collation Order" on the ADO connection object, and that you want...
August 15, 2005 at 3:25 am
First of all, without specifying an ORDER BY clause in your query you can never be sure of any specific order for the results.
Now, NULLs are treated as the lowest...
August 15, 2005 at 1:47 am
Unfortunately SQL Server does not implement unique constraints correctly as specified in the ANSI standard. Any entries in BOL that say "that a unique constraint will only enforce uniqueness for...
August 15, 2005 at 1:40 am
The space required will be a little more than the 500 kb original image. First you have a 16 byte pointer in the row where the image is logically contained....
August 15, 2005 at 1:06 am
Are you sure that you are installing Developer Edition and not Express Edition?
August 15, 2005 at 12:49 am
The 'report' of deadlock activity goes in the current SQL Server Errorlog. Regarding traceflags, see my article How to use trace flags in SQL Server 2000.
August 15, 2005 at 12:44 am
True, SPs are not compiled but they can and frequently do use a previously created execution plan. Inline code does not.
Not correct, ad-hoc SQL can very well reuse previously compiled...
August 12, 2005 at 8:17 am
If that is all it says that it is an extreme simplification, and not always correct.
August 12, 2005 at 8:16 am
Aha, I thought they were actually checking @@rowcount, but I guess they are just checking the properties of the recordset (or similar object).
August 11, 2005 at 7:57 am
Uhm, am I missing something here? As far as I can test, @@rowcount is not changed in the outside scope by actions done inside a trigger. Test script:
IF OBJECT_ID('dbo.foo') IS...
August 11, 2005 at 6:46 am
There is a known bug where the SQL Server perf counters are missing if Perfmon is running while SQL Server is restarted. Stop Perfmon and restart SQL Server, then start...
August 11, 2005 at 6:33 am
Here is one solution that does not use cursors, but since it calls a UDF it will suffer if there are many rows. Normally I would do this kind of...
August 11, 2005 at 2:16 am
Viewing 15 posts - 391 through 405 (of 1,413 total)