Forum Replies Created

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

  • RE: Identify letter vs. number

    Mindy, the problem is that you have the data stored in a CHAR(32)... trailing blanks come into play there. Either change the column to a VARCHAR(32) or modify my...

  • RE: Dynamic Proc

    jeff ...there is no other go, i want ot use only dynamic sql

    Heh... you must not have looked because I gave you dynamic SQL. 😉

  • RE: concatenation problem

    Sorry... not seeing the pattern here between the inputs and the desired output... would you explain how you want the concatenation formed better, please? Also, see the following if...

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

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