Forum Replies Created

Viewing 15 posts - 6,271 through 6,285 (of 6,486 total)

  • RE: A Fun Poll

    ...His and hers monogrammed backscratchers for me and Mrs. M to celebrate the 7-year itch celebration?

  • RE: Need help in SUM query

    ....where cast(year1 as char(4))+right('00'+cast(periodid as varchar(2)),2)<='200703')

     

    OR

    ...Where (year1<2007 OR (year1=2007 AND periodid<=3))

  • RE: Date, Sum and SQL recursive

    Second version:  should do better on large sets, as long as you don't have incredibly long "unbroken streaks".  Same remark re: indexes.

    this one is iterative in nature, doing n update...

  • RE: Date, Sum and SQL recursive

    This should be a functional one.  Not a well performing one on large set (because of the nested subquery).  But it does get you out of the recursive business. 

    It...

  • RE: How to generate ASCII Fixed Length file

    ..or why they can't deal with a "standard format" file + something like the output from a sp_help <table>.

    Maybe I'm biased, but every time I hear "fixed width file" I...

  • RE: Aggregate - Group by ?

    Okay - I give .  I'm not understanding how you're counting, because your sample numbers aren't making sense relating to your sample data.

    Caffeine will...

  • RE: DTS help for accesing ACCESS db.

    you're on the right track - here's a rough checklist:

    • set up the global variable to store the filename (the Access DB name).
    • set up a "static" database connection to one that...
  • RE: count values from two seperate table using join?

    As in:

    select p.KPAIDS_NO, [TotalCurrentDelivery]

    , Year_Of_DeliveryCount

    from

    Patient_Demographics p

    left outer join

    (

  • RE: count values from two seperate table using join?

    Denby - you need to create the counts in separate sub-queries FIRST, then join them.  If you join them first - your counts will be wrong (most likely - for...

  • RE: Install Developer edition on Vista

    From the FAQ @ Microsoft confirming Pam's point:

    What release of SQL Server 2005 will run on Windows Vista?
  • RE: Really interesting issue!

    Wow...that's going to hurt.  That complicated of a dynamic SQL statement is bound to not do so hot performance-wise.  You'll get a LOT more performance if you created a stored...

  • RE: date functions

    Goes to show how important coffee is to the IT industry.  Last night - I spent most of an hour scratching my head, wondering what new-fangled item  Jeff was referring...

  • RE: Truncating the Transaction Log

    1. As we cannot afford a log backup (as there is no freespace left) taking a full backup and then truncating the log and shrink the logfile is a safe...

  • RE: Using Variables with openrowset bulk

    You're trying to sneak some dynamic SQL in.  You'd need to build your entire INSERT statement, openrowset and all, in a string variable, and then use the

    EXEC(@var)

    command to...

  • RE: Really interesting issue!

    I'm not understanding how the call duration is getting you accurate results, but that's a different discussion.  A few things jump out at me:

    • You might care to put your date logic inside...

Viewing 15 posts - 6,271 through 6,285 (of 6,486 total)