Forum Replies Created

Viewing 15 posts - 181 through 195 (of 471 total)

  • RE: Sorting triggered by data type

    Interesting question which provoked a good discussion.

  • RE: Maximum number of Databases.

    Ninja's_RGR'us (12/8/2011)


    Make sure to put them all on auto close & autoshrink.

    Then start foreachdb and check stuff in them :hehe:

    I like where this is headed.

  • RE: DATETIME 1

    ma-516002 (12/7/2011)


    Great question, but the answer is language dependant since outside the us at first glance '01-08-2011' reads 1st of August 😉

    Yes, this is a lesson we learn quite quickly...

  • RE: Table space usage 3

    Great question, thanks Hugo.

  • RE: Delete duplicate row

    Jpotucek (11/18/2011)


    Thank you one and all.. time to put on my Quincy lab coat and go do some investigating on 'cte's 😀

    I remember Quincy, but I...

  • RE: Delete duplicate row

    SKYBVI (11/18/2011)


    Cliff Jones (11/18/2011)


    SKYBVI (11/18/2011)


    ;WITH cte

    AS (SELECT ROW_NUMBER() OVER (PARTITION BY Col1, Col2

    --add all column names col1,col2,...

    ORDER BY ( SELECT 0)) RN

    FROM table)

    DELETE FROM cte

    WHERE RN > 1

    Regards,

    Sushant

    Yes Sushant, I...

  • RE: Delete duplicate row

    Jpotucek (11/18/2011)


    Thank you!!!

    I ran this and it worked:

    ;WITH cte

    AS (SELECT ROW_NUMBER() OVER (PARTITION BY path, sortOrder,id, repname, repfilepath, language_cd, updateddate, repFormat

    --add all column names col1,col2,...

    ORDER BY ( SELECT 0)) RN

    FROM...

  • RE: Delete duplicate row

    Jpotucek (11/18/2011)


    not sure what ;WITH cte means..

    but I tried this:

    Select * (SELECT ROW_NUMBER() OVER (PARTITION BY path, sortOrder,id, repname, repfilepath, language_cd, updateddate, repFormat

    --add all column names col1,col2,...

    ORDER...

  • RE: Delete duplicate row

    SKYBVI (11/18/2011)


    ;WITH cte

    AS (SELECT ROW_NUMBER() OVER (PARTITION BY Col1, Col2

    --add all column names col1,col2,...

    ORDER BY ( SELECT 0)) RN

    FROM table)

    DELETE FROM cte

    WHERE RN > 1

    Regards,

    Sushant

    Yes Sushant, I was just about...

  • RE: Use of DATETIME and BETWEEN - Part 2

    Good question, thanks.

  • RE: Table space usage 1

    jeff.mason (11/9/2011)


    Yeah, in my case I am so used to the indexes being created as a part of making the foreign key that I failed to notice that they weren't...

  • RE: Triggers

    mbova407 (11/2/2011)


    Yeah... one point... now two with this post.

    That's the spirit!

  • RE: Collation and SQL_VARIANT

    Very interesting question.

  • RE: SQL Server Code name

    Is this going to be on the test?

  • RE: Query Plan Execution Order

    Great question and explanation. I answered a little too quickly.

Viewing 15 posts - 181 through 195 (of 471 total)