Viewing 15 posts - 241 through 255 (of 310 total)
Putting ORs in the WHERE clause is going to impact the execution plan and performance - by how much depends on the whole statement.
Unless performance is absolutely critical, though, I...
March 15, 2005 at 2:12 am
There was a lengthy exchange on this site a few months ago regarding ensuring that security classified data is genuinely destroyed. The outcome seemed to be that SQL Server...
March 15, 2005 at 2:03 am
I feel that this is one of those questions where 'If I need to know, I must be doing something wrong'! Could you put the values in a temporary...
March 9, 2005 at 2:16 am
An additional factor not mentioned above :
Table variables cannot be used in parallel processing and so may lead to a less efficient query plan on a multi-processor box. I...
March 4, 2005 at 3:03 am
I think what you want is :
SELECT SUM(CASE WHEN id BETWEEN '17' AND '29' THEN '1' END) AS '17-29',
SUM(CASE WHEN id BETWEEN '30' AND '39' THEN '1' END) AS '30-39',
SUM(CASE...
February 23, 2005 at 6:08 am
You can set it dynamically in T-SQL :
SET QUOTED_IDENTIFIER ON/OFF
Why do you say that it is bad practice? - or do you just mean at the connection level?
February 10, 2005 at 6:56 am
It depends on how the dll has been written, registered and called. You need to check with the author / documentation.
January 12, 2005 at 2:21 am
You also could use the COALESCE function which returns the first non-null value of its arguments. In your case, COALESCE([Adj Due Date], [Due Date]) ... but this will take...
January 12, 2005 at 2:11 am
This is most certainly not my area of expertise but I recall reading recently a post about problems with chaining network authorisation between more than two NT / 2000 boxes....
January 7, 2005 at 4:57 am
I had a problem recently with an SP using table variables running slowly in production when it had been OK in development. The difference turned out to be that...
January 7, 2005 at 1:57 am
It sounds like the security settings on the COM+ component not matching SQL Server or the box itself.
January 7, 2005 at 1:51 am
You need 'GO' + CHAR(13) in front of 'CREATE PROCEDURE ...
December 30, 2004 at 2:03 am
Surely, the only test that you need is for the equality (unless you really want 0 when TOT_WAIT_TIME is zero; you are, not unreasonably, assuming that TOT_WAIT_TIME never will exceed...
December 22, 2004 at 2:30 am
I've not seen this behaviour. Probably obvious but, while I assume that you have the timeout property set on the Connection object in VB, as a workaround, what about...
December 22, 2004 at 2:22 am
I have seen this effect also but have not had the opportunity to investigate.
November 25, 2004 at 9:02 am
Viewing 15 posts - 241 through 255 (of 310 total)