Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)

  • RE: Select a column dynamically

    Still some clarification needed man....

    means are u looking for a query that will accept the category and output the column dynamically

    or something else ??????/////

  • RE: Archiving the database.

    Hi Winslet..

    Here is the Stored procedure that hopefully serves what you are looking for....

    CREATE PROC dbo.ArchiveData

    (

    @CutOffDate datetime = NULL

    )

    AS

    BEGIN

    SET NOCOUNT ON

    IF @CutOffDate IS NULL

    BEGIN

    SET @CutOffDate = DATEADD(mm, -6, CURRENT_TIMESTAMP)

    END

    ELSE

    BEGIN

    IF...

  • RE: Not in and Not exists

    Well this is quite a simple thing sarvesh, whenever ANSI Null is encountered it is considered to be an active tuple while dealing with NOT EXISTS, because of which you...

Viewing 3 posts - 16 through 18 (of 18 total)