Forum Replies Created

Viewing 15 posts - 57,646 through 57,660 (of 59,066 total)

  • RE: Must delare the variable?

    Sushila,

    You're having one of those days like I did on the trigger thing...

    DECLARE @UseIt1 as varchar(100)

    EXEC ('SET ' + @UseIt1 +...

  • RE: SQL is burping

    Whew!  The number 6 would have really messed me up... I only have 5 fingers on each hand!

  • RE: Archiving to history without creating duplicate rows

    Yep... and keep in mind that SELECT/INTO only works once on any given target table unless you drop the table... but that would defeat the archive, eh

  • RE: Can you query against a CURSOR?

    Lee,

    You used the key words "query the dataset".  Cursors contain a bunch of rows but they can only be worked on or "fetched" one agonizing row at a time.  If...

  • RE: Nested values in a table

    Sure you do... "Old" = Parent, "New" = Child.  It's a classic hierarchical problem.  There has to be a dozen good articles and lot's of good posts on this forum...

  • RE: Populating Variable

    I believe that what you are looking for may be solved with "dynamic SQL".  There has to be a thousand good postings on this forum about it... try a search...

  • RE: T-SQL basic Query

    I've found the even Microsoft uses the "undocumented" features   Works for me!

  • RE: Data from Previous Row

    Concure with that... isn't there an autonumbering column or a date/time column or a consecutive ID column of any sort?  How about a clustered primary key?  There has to be something...

  • RE: Creating Row Number Field

    I've never seen it fail either (and it's been 10 years)... however, the first article says it's guaranteed to be OK if you create the table with the IDENTITY column...

  • RE: Between Versus ">= and <="

    Thought I'd throw my 2 cents in here because lot of folks run into some real problems when using ranges of dates as criteria...

    BETWEEN is fine for date ranges......

  • RE: Creating text files for each row of the ouput

    Sorry... was in a hurry and forgot that you were using a cursor and I...

  • RE: Substring on NText data type

    Yah... forgot that the NTEXT data type is being used... sorry.

  • RE: Creating text files for each row of the ouput

    Of course it's only creating one file... that's because you hardcoded the output file name as c:\Person_notes.txt.

    You need to make the file name dynamic, as well.  Perhaps using the...

  • RE: Update in batches

    John,

    Understood... I just don't make those same assumptions... if the requester knew about those types of things, they might not have needed to ask the original question

  • RE: How to calculatate the correlation coefficient

    If the columns a VARCHAR or the like, you can use SOUNDEX (won't work on numbers).

Viewing 15 posts - 57,646 through 57,660 (of 59,066 total)