Forum Replies Created

Viewing 9 posts - 121 through 129 (of 129 total)

  • RE: NULL Equals NULL?

    I haven't seen mention of this important NULL topic anywhere:

    select 1

    where 1 = 1 or datediff(hour, null, getdate()) > 4

    TSQL seems to work like this:

    where True OR NULL = True

    where...

  • RE: Query to include Count of NULL values in GROUP BY

    I sometimes use this to count NULLs

    sum(case when [Field] is null then 1 else 0 end)

    don't know how performant it is though

    can be useful like this also

    having sum(case when [banana]...

  • RE: How to write if else condition in Procedure

    1) the download size is 144mb

    2) then it decompresses

    3) then it calculates the indexes

    4) the indexes are stored in the windows folder

    5) every product that integrates with microsoft help system...

  • RE: How to write if else condition in Procedure

    I wouldn't download the BOL

    use the lightweight online version

    http://msdn.microsoft.com/en-us/library/ms130214.aspx

    I would avoid the (extremely bad) microsoft local help system

    the online versions are much quicker

    that is unless you like:

    - waiting...

  • RE: A Deadlock Occurence and Resolution

    Jonathan Kehayias (2/3/2009)

    Take a look at the article from yesterdy. A missing/incorrect index can most definitely be the cause of a deadlock. In fact most deadlocks are simple...

  • RE: A Deadlock Occurence and Resolution

    SQL 2005 has xml deadlock report in profiler

    which will track deadlock down to tables and stored procedure statements

    I think your solution does not solve the deadlock - just makes it...

  • RE: Fast Project Rollbacks

    Some very nice techniques and ideas in the article

    But I have never rolled back a change to a production database in 10 years.

    Your energy would be much better spent ensuring...

  • RE: Where should the DBA Team exist?

    when I design a application / database it is a balancing act between:

    - performance

    - manageability

    - simplicity

    - flexibility

    - etc.

    every table design decision has implications for views and stored procedures

    every view design...

  • RE: Where should the DBA Team exist?

    The application developer should be the DBA of his applications' databases.

    Separation of roles results in low quality results.

    Integration is the route to high quality and efficiency.

Viewing 9 posts - 121 through 129 (of 129 total)