Forum Replies Created

Viewing 15 posts - 18,211 through 18,225 (of 26,484 total)

  • RE: Which one is the efficient Way from the below two

    Okay, here is one way to delete five million rows of data from a table with thirty seven million rows of data.

    declare @Batch int;

    set @Batch = 10000; -- Batch size...

  • RE: Are the posted questions getting worse?

    Remember always, the water cooler this is. Here may you veg (or my case run to the desert), rant a bit, and even ask for help on other threads...

  • RE: Return most recent of a sub group of records

    If you're going to "bump" your post, how about posting something usefull, like DDL for your tables, sample data, and expected results. That may actually get you more help...

  • RE: Are the posted questions getting worse?

    Dave Ballantyne (11/24/2009)


    Its not just SqlServer central this happens with...

    Just had to check my daughters homework (she 8) , she had to plan an 8 hour evening tv schedule adding...

  • RE: Serializable Transaction

    Not sure, but I think I'd try something like this:

    SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;

    begin transaction

    if exists(select 1 from dbo.tRunNo where Pref = '_T' and RYear = '2009' and RMonth =...

  • RE: Return most recent of a sub group of records

    Ron-279530 (11/24/2009)


    The query below return many records where the description field is identical, where that occurs I want only the most recent of those records.

    select historyid, h.startdate,a.account,h.description,longnotes, address1, city, state,...

  • RE: Query architecture

    May I suggest that you try checking out BOL? It may cover this particular topic, I haven't checked myself as I have never been asked this question myself in...

  • RE: Building Date Comparison String

    Actually, if I were doing this and running a query through the end of the previous day, month, quarter, etc I'd do it slightly different.

    Using the end of the previous...

  • RE: Query architecture

    First, this question could require an extremely verbous answer. It would help if we could understand better what you are actually looking for from this question.

  • RE: Building Date Comparison String

    So, yyyy-12-31, yyyy-03-31, yyyy-06-30, yyyy-09-30?

    Then you can check this out:

    select dateadd(qq, datediff(qq, 0, getdate()), -1)

    This will return the last day of the previous quarter.

  • RE: Building Date Comparison String

    Roger Abram (11/24/2009)


    I actually got it to work by doing this:

    If month(getdate()) = '04'

    set @PaidThruRun = convert(datetime, ( '03/31/' + convert(varchar,year(Getdate()) )))

    Okay, now it looks like you want the end...

  • RE: Today's Random Word!

    Compassion

  • RE: running 2008 ssis pkg on sql server 2005 env

    ???

    From what I have read SSIS 2008 packages can not be run using SSIS 2005.

  • RE: running total

    Jeff,

    Wouldn't a million row setup show what you are talking about? Of course, you could make it ten million.

  • RE: Are the posted questions getting worse?

    I have to agree with Jack, Bob. Thank you taking that initiative to check on Barry. It definitely sets SSC apart from the rest! This is the...

Viewing 15 posts - 18,211 through 18,225 (of 26,484 total)