Forum Replies Created

Viewing 15 posts - 56,791 through 56,805 (of 59,072 total)

  • RE: cross tab query in sql 2000

    There's gotta be a thousand posts on this web site for "crosstab" and "transpose" and "pivot".  Do a search on it and I'm sure you'll find one that fits.  Also,...

  • RE: List Problem...

    Thanks for the feedback, Therion... it means a lot to us that someone is actually looking at the answers.  Appreciate it much!

  • RE: One more SQL puzzle

    Looks more like homework to me...

  • RE: T-log too big...need batch inserts

    Putting the Recovery Mode to Simple sets the 'trunc. log on chkpt.' to true automatically.  Your problem is the log... your Insert/Select is still logged despite the SIMPLE setting you...

  • RE: Primary key / DTS load question

    p.p.s.  Why the hell are you using DTS for such a simple BULK INSERT task, anyway... you like "slow" or something

  • RE: Primary key / DTS load question

    Yeah... me too... sorry you had to wait 4 years for the answer...

  • RE: Primary key / DTS load question

    I agree... NOT EXISTS implies a correlated sub-query which is another form of RBAR (pronounced "ree-bar" and is a "Modenism" for "Row By Agonizing Row").

    Now, the interesting part is that...

  • RE: Divide by question

    Another way... with right justification to boot...

     SELECT STR(COUNT(DateCol)/110.0*100.0,8,1)+'%'

       FROM @Table

  • RE: Table with increment charter ID field

    P.S.  It won't blow up after 6,759,999... but it will start the sequence over, so you may want to put a constraint on the IDENTITY column to be >=0 and...

  • RE: Table with increment charter ID field

    Ummm beat me to it... well, almost... please send beer, I already have enough pretzels...

    --===== If the demo table exists, drop it

         IF OBJECT_ID('TempDB..#yourtable') IS NOT NULL

            DROP...

  • RE: Unlimited columns

    TNT,

    Just for grins, can you post the "header file" and a row or 2 of data (making sure, of course, there are no SSN's, account numbers, etc in the file)? ...

  • RE: Reading from a text file

    Sure, Bakr... but I need a wee bit more information...

    1. Did you end up with any continuation lines?
    2. Can you use xp_CmdShell?
    3. Can you post the DDL for the table (be sure to indicate...
  • RE: Sorting a field

    Perfectly clear, thank you...

     DECLARE @TestData TABLE (StringValue VARCHAR(20))

     INSERT INTO @TestData

     SELECT '0000022211' UNION ALL

     SELECT '0000022243' UNION ALL

     SELECT '0000072211' UNION ALL

     SELECT '0000102221' UNION ALL

     SELECT 'AB00011'    UNION ALL

     SELECT 'CD000111'

     SELECT...

  • RE: sudden slow down

    What did you find out about memory?  Do you have an app that someone recently made a change to that has memory leaks?

    Also, since it occurs so regularly, have you...

  • RE: Sorting a field

    Heh...

    Dinesh... take a look at the following for a complete explanation as to why ISNUMERIC should never be treated as ISALLDIGITS... and, it's not a fault... it's a feature...

Viewing 15 posts - 56,791 through 56,805 (of 59,072 total)