Forum Replies Created

Viewing 15 posts - 53,536 through 53,550 (of 59,065 total)

  • RE: union

    Actually, if you look at the bigger picture, you have a much larger problem... why would you select from 3 different tables into 1? Except, possibly, for reporting, you...

  • RE: Dynamic Proc

    if you want to pass parameters into dynamic sql, then you MUST use sp_executesql.

    I guess that depends on what you're calling a "parameter"...

    Mike, going back to your original post, the...

  • RE: I'm sick of poor third-party software performance

    Perfect... thanks, Matt.

  • RE: SELECT INTO

    SELECT INTO to populate the entire recordset is painfully slow compared to INSERT INTO

    Not real sure where you're coming up with that... I agree that SELECT/INTO will hold a lock...

  • RE: I'm sick of poor third-party software performance

    I was pleasantly surprised a few years back to see MS trot out an actual certification specifically for these folks with most of its emphasis on the SQL side, and...

  • RE: Different date format in different tables.

    For so many reasons, storing dates as formatted VARCHARs is such a terrible idea. If you need to do any date math or comparison of dates, formatted dates only...

  • RE: Extract data to another table?

    Actually, here's a solution that doesn't use a temp table...

    --===== Solve the problem ==========================

    --===== Declare a variable to hold the delimiter

    DECLARE @Delim CHAR(1)

    SET @Delim = ','

    ...

  • RE: CURSOR v WHILE for beginners

    Oh no... a "sequence" table. :hehe: Third party app we got used one... cause an average of 640 deadlocks per day because of the way they wrote the increment...

  • RE: Forum Etiquette: How to post data/code on a forum to get the best help

    Thanks for the feedback, Taffy.

  • RE: Identify letter vs. number

    Jeff, your "auto magic" one came the closest but I got some extra zeros I haven't quite figured yet -

    Original Modified

    -------------------

    A14 A00014

    B2 B0002

    OBT 0000OBT

    YH3 YH0003

    XX 0000XX

    So - too many...

  • RE: Extract data to another table?

    Karthik, it looks as if your code will fail if the length of any part changes because you've hard-coded each length. Also, I wouldn't use the spt_Values table in...

  • RE: How to avoid While Loop - RBAR ?

    If you use SQL Server 2005, then you can make use of CTE as well

    Ummm.... I'm pretty sure I'll avoid recursive CTE's just like I avoid Cursors... they're just too...

  • RE: SELECT INTO

    Yep... know that... see my post above...

  • RE: System Stored Procedures that aren't

    Heh... dunno... must be a new "feature" than MS built in... 😉

  • RE: What the? Where did THAT go?

    Heh... yeah... it's a shame that MS can't figure out the best of both worlds. Having just seen 2k5 for the first time and the apparent mess they made...

Viewing 15 posts - 53,536 through 53,550 (of 59,065 total)