Forum Replies Created

Viewing 15 posts - 49,561 through 49,575 (of 59,078 total)

  • RE: The T-SQL Quiz

    dfalso (6/27/2008)


    And to me, I wouldn't presume that 11000 was enough for anything except days since 1970ish.

    How many times have you personally needed a Tally table larger than 11,000? 😛

  • RE: The T-SQL Quiz

    dfalso (6/27/2008)


    Not to quibble about it, but you do need dynamic SQL if you need more than 11,000 but don't know how much more. Right? In other words, if your...

  • RE: The T-SQL Quiz

    Matt Miller (6/27/2008)


    I personally roll with a tally table with a 1M limit, but that's a personal choice.

    Otherwise - it's very easy to come up with a numbers table of...

  • RE: The T-SQL Quiz

    Oh no... about 99% of everything you need to do can be done with a Tally table of 11,000 rows. If you need more than that, you can create...

  • RE: T-sql question

    Aye. Thanks for the feedback... I sometimes wonder if posts like that do any good. 🙂

  • RE: The T-SQL Quiz

    David Jackson (6/27/2008)


    Hats off to Jeff M for teaching us this trick

    Edit: I see Matt beat me to it, but he is spot on, forget loops if you can.

    Thanks...

  • RE: Converting numbers

    Mark (6/27/2008)


    But I got errors.

    Can't read your mind, Mark... please post the exact text from the errors...

  • RE: The T-SQL Quiz

    zxn001 (6/27/2008)


    Ok... so basically when you ask it to opperate a command on a column...

    THAT, is the basis of set based programming. THAT, is the necessary paradigm shift necessary...

  • RE: The T-SQL Quiz

    dfalso (6/27/2008)


    Also, depending on need, you can adapt the above to dynamic SQL should you want to work with input parameters.

    Why would you need to do that?

  • RE: Tricky Transact SQL

    Michael has the right idea for you helping us to help you.

    In the meantime, lookup "Cross Join" in Books Online...;)

  • RE: The T-SQL Quiz

    Tom Garth (6/27/2008)


    There are some assumptions in what I'm about to say.

    That's a heck of a good explanation, Tom...

    To put it in laymen's terms, there are two ways to buy...

  • RE: The T-SQL Quiz

    zxn001 (6/27/2008)


    I didnt know SQL could do that.

    And you made me a believer, a very confused one, but still believing.

    So now I'm really curious, WHY does the set loop work...

  • RE: I have a requirement like this?

    Basically, I use batch files to do the transfers like Matt suggested. You're moving files... why not let the thing that handles files the best do it... namely the...

  • RE: I have a requirement like this?

    Validation of the text files should be done either during the creation of the text file, during the import of the text file, or, preferably, both.

    And, yes... the copy of...

  • RE: text file in sql

    To answer such a general question, I have to say lookup the following in Books Online...

    Bulk Insert

    BCP

    BCP Format Files

    Linked Servers (for text files)

    OpenRowSet

    DTS

    SSIS

    OSQL

    SQLCMD

Viewing 15 posts - 49,561 through 49,575 (of 59,078 total)