Forum Replies Created

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

  • RE: Are the posted questions getting worse?

    RBarryYoung (11/25/2009)


    Alvin Ramard (11/2/2009)


    Lynn Pettis (11/2/2009)


    Thought this one was interesting. Basically, I found this neat code and I would like someone else to port it to SQL Server for...

  • RE: Today's Random Word!

    5 day weekend!

  • RE: Are the posted questions getting worse?

    Too be honest, I never saw myself being in the top 5 or breaking 10,000! :Wow:

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (11/24/2009)


    Woot - just cracked the top 100 here at SSC. It only took 1918 points.

    To think, a year or so ago that would have put you in the...

  • 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...

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