Forum Replies Created

Viewing 15 posts - 241 through 255 (of 310 total)

  • RE: Performance hints of using IF Else

    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...

  • RE: What is ALTER TABLE actually doing?

    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...

  • RE: Limit on number of values in the IN clause?

    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...

  • RE: What temporary table is better, physical, virtual or variable?

    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...

  • RE: How to SUM

    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...

  • RE: where clause..Please help

    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?

  • RE: Hi about DLL''''s

    It depends on how the dll has been written, registered and called. You need to check with the author / documentation.

  • RE: Query Help

    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...

  • RE: COM+ SQL Server access problem

    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....

  • RE: SQL Server Perfomance issue

    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...

  • RE: COM+ SQL Server access problem

    It sounds like the security settings on the COM+ component not matching SQL Server or the box itself.

  • RE: Dynamically determine DB and create stored proc??

    You need 'GO' + CHAR(13) in front of 'CREATE PROCEDURE ...

  • RE: Divide by zero error.

    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...

  • RE: Slow Connection using ADO when Service hangs

    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...

  • RE: Parallelelism pour performance

    I have seen this effect also but have not had the opportunity to investigate.

Viewing 15 posts - 241 through 255 (of 310 total)