Forum Replies Created

Viewing 7 posts - 2,611 through 2,617 (of 2,617 total)

  • RE: NULL Equals NULL?

    donnelcyril (11/9/2008)


    Hi,

    I am having problems with my queries which I definitely think is because of null values. This is what I want to do:

    Find out a list of phone numbers...

  • RE: Identifying Queries Running Slower Than Normal

    Akash Agarwal (8/13/2008)


    I m getting ther error on the line

    CROSS APPLY sys.dm_exec_sql_text(qs.plan_handle) qt

    while creating the Proc

    The error is

    Msg 102, Level 15, State 1, Procedure dba_QueryTimeDelta1, Line 49

    Incorrect syntax...

  • RE: Identifying Queries Running Slower Than Normal

    I've added a NullIf function to prevent the divide by zero error:-------------------------------------------------------------------------- ----------------------------------------------------------------------------------
    -- Purpose: Identify queries that are running slower than normal,
    -- when taking into account...

  • RE: Identifying Queries Running Slower Than Normal

    Here's one with divide by zero error removed and indentation:

    ------------------------------------------------------------------------

    -- Purpose: Identify queries that are running slower than normal,

    -- when taking...

  • RE: Insert Update Stored Procedure for a table

    I realy like this stored procedure. I have a system that uses UPSERTs where first you try to update a row using the primary key and if it the...

  • RE: NULL Equals NULL?

    Whenever you compare NULL you should always use 'IS NULL' rather than '= NULL'

    e.g.

    [font="Courier New"]SET ANSI_NULLS ON

    DECLARE @val CHAR(4)

    SET @val = NULL

    SET ANSI_NULLS ON

    If

  • RE: Document Your Database

    I agree, I've gone to the effort of writing a Word macro template to document SQL-Server databases. You just select an ODBC data-source for a SQL server database and it...

Viewing 7 posts - 2,611 through 2,617 (of 2,617 total)