Forum Replies Created

Viewing 15 posts - 44,506 through 44,520 (of 59,063 total)

  • RE: How to import data from text file into SQL

    halifaxdal (3/19/2009)


    dmoldovan (3/19/2009)


    Do you use " as a text qualifier?

    Thanks. That's exactly what I just found out. How about removing the last EOF?

    Not to mention the leading quote in the...

  • RE: datetime to month - year

    Lynn Pettis (3/19/2009)


    Will this work for you?

    select left(datename(mm, getdate()), 3) + '-' + cast(datename(yyyy, getdate()) as char(4))

    No casting needed when you used DATENAME, Lynn. 🙂

  • RE: T-Sql rant

    Lynn Pettis (3/19/2009)


    Jeff Moden (3/19/2009)


    foxjazz (3/19/2009)


    I think this is the query I arrived at for getting the next PK value.

    select @currentval = max(Convert(int,substring(GenLevelAddFieldID,len(@@servername) + 1,10))) from tblLevelAddFieldRel where GenLevelAddFieldID...

  • RE: T-Sql rant

    Bruce W Cassidy (3/19/2009)


    Jeff Moden (3/19/2009)


    If being able to isolate rows by identifying the server is necessary, GUID's will not do the job by themselves.

    True. But neither will server...

  • RE: T-Sql rant

    J (3/19/2009)


    And as was mentioned before, a LineNo is the normal way of forcing a specific order. Using the script already posted to increment the LineNo to be consecutive allows...

  • RE: T-Sql rant

    foxjazz (3/19/2009)


    Sergiy, as far as the bands. How could I use identity and keep with the rule of source bands.

    If it must be done that way, then multiple tables...

  • RE: T-Sql rant

    Bruce W Cassidy (3/19/2009)


    foxjazz (3/19/2009)


    As far as the varchar(50) pk numbers, there is no other way to do it.

    We do it by computername for a reason, our sync processes depend...

  • RE: T-Sql rant

    foxjazz (3/19/2009)


    I think this is the query I arrived at for getting the next PK value.

    select @currentval = max(Convert(int,substring(GenLevelAddFieldID,len(@@servername) + 1,10))) from tblLevelAddFieldRel where GenLevelAddFieldID like @@servername + '%'...

  • RE: T-Sql rant

    JacekO (3/18/2009)


    I would keep it simple. Deal with one record at a time. If your Stored Procedure is designed to work fine with one record you can call it sequentially...

  • RE: Are the posted questions getting worse?

    Derek Dongray (3/18/2009)


    ... that is, that light bulb is flickering on!

    Heh... either that or it's the low glow from a slow burning fuse... 😉

  • RE: Are the posted questions getting worse?

    Bob Hovious (3/18/2009)


    Hey Jeff, can I send you an email about something?

    Always, Bob.

  • RE: Are the posted questions getting worse?

    Roy Ernest (3/18/2009)


    I think all of you has made some progress with Fox. He actually gave the Table structure?? Wow. I am impressed with all of your patience..

    I cannot believe...

  • RE: BULK INSERT problems

    That's why I suggested attaching the first 10 lines of the file... so I can see what the termination character is in binary.

  • RE: is there a way to do a mass update in SSIS

    Thanks for the feedback... and yes, that's precisely what I was talking about. You also don't need to spend a lot of time deleting that way, either (although, like...

  • RE: T-Sql rant

    foxjazz (3/18/2009)


    J, my dba wife pointed it out to me last night that set based solutions are not always superior to cursors.

    She's confusing things like the use of triangular...

Viewing 15 posts - 44,506 through 44,520 (of 59,063 total)