Forum Replies Created

Viewing 15 posts - 2,776 through 2,790 (of 5,590 total)

  • RE: Generate list of dates -- one date per month going back to the beginning of the year

    This should do it for you. Remarks are in the code.

    DECLARE @date datetime,

    @month tinyint;

    SET @date = '20101230';

    -- get the month of the...

  • RE: Records Deleted

    pavan_srirangam (10/19/2010)


    I think he needs find out who or what are doing the deletes not the data what is deleting.

    Check out the last three columns in the new table......

  • RE: Urgent help needed to convert 100 rows into 100 columns

    thejask08 (10/19/2010)


    How to do it SQL SERVER 2000. ROW_NUMBER(), OVER() doesnt exist in SQL SERVER 2000.

    Please help how to do this in sql server 2000.

    It would help to be mindful...

  • RE: More efficient way

    Bill_CCAC (10/19/2010)


    I will but I'm not quite finished with it yet. As soon as I get it sorted I'll posted it.

    This turned into a nice post. Thanks all

    I'd suggest...

  • RE: Dead lock on Collection Set

    Roy Ernest (10/19/2010)


    I think I will try a rewrite of the sproc and test it in our QA with load testing and see if it will cause any dead locks.

    If...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (10/19/2010)


    WayneS (10/18/2010)


    ... we need several hundred years of records to know this, and we barely have one hundred. I also believe that this whole global...

  • RE: Insert trigger not working

    aspardeshi (10/18/2010)


    Secondly, I have seen many triggers, but the one of your kind is totally unknown and completely new to me in terms of clauses. Can you please explain what...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (10/18/2010)


    I'm with Lynn. I'm not sold that global warming, even if it is happening, is a bad thing. It might be part of a long...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (10/18/2010)


    I can still remember a time, many years ago when my mom and her friend were having a heated debate between Nixon and McGovern. At one point...

  • RE: Store pdf's in database --- text, image, or filestream?

    Please see this link.

    Text/image are depreciated - they are going away in a future version of SQL. Use varbinary(max) instead.

    Which to use: FileStream or varbinary? It depends:

    How many files to...

  • RE: Date Gap Problem

    Here's an update to my code. I've moved the 1462 dates we're concerned with into a separate temp table, instead of being called through a CTE numerous times. Greatly improves...

  • RE: Date Gap Problem

    Jeff Moden (10/17/2010)


    WayneS (10/17/2010)


    This works, but the performance is atrocious.

    Because of the very large datespan from any date in this century to 9999-12-31, I'm thinking that my ol' friend the...

  • RE: Date Gap Problem

    Jeff Moden (10/17/2010)


    Sorry... forgot to print out the results...

    MemberIDStartDateEndDateGap

    12006-10-01 00:00:00.0002007-12-31 00:00:00.0000

    12008-01-15 00:00:00.0002008-12-31 00:00:00.00015

    22007-02-03 00:00:00.0002007-12-31 00:00:00.0000

    22008-01-15 00:00:00.0002008-12-31 00:00:00.00015

    32006-10-01 00:00:00.0002007-09-30 00:00:00.0000

    32008-01-01 00:00:00.0002008-12-31 00:00:00.00093

    Jeff, are these gaps correct? By my calc, there are...

  • RE: Date Gap Problem

    Kevin,

    This works, but the performance is atrocious. I'm posting it so that others (Jeff???) can see what I'm doing, and to improve upon it.

    declare @GapDays int,

    ...

  • RE: Are the posted questions getting worse?

    Jeff Moden (10/17/2010)


    WayneS (10/14/2010)


    "Don't try this at home... we're professionals!"

    Heh... I have the perfect SQL subject for that... Quirky Update. 😀

    SOM!

Viewing 15 posts - 2,776 through 2,790 (of 5,590 total)