Forum Replies Created

Viewing 15 posts - 76 through 90 (of 182 total)

  • RE: Problems updating inserted row from within cursor

    AVB,

    You have many options as to how to construct this. I can't go into too much detail because I don't know your DDL, etc., but I'll give a...

    If it was easy, everybody would be doing it!;)

  • RE: Problems updating inserted row from within cursor

    Like Matt said, more details will help to provide an accurate solution.

    Basically though, you can get the data in sets rather than row by row as Matt outlined in his...

    If it was easy, everybody would be doing it!;)

  • RE: Problems updating inserted row from within cursor

    Ahhh...the key to your solution, Matt, is to build the row string on the INSERT into the temp table, rather than building it when SELECTING from the temp tables. ...

    If it was easy, everybody would be doing it!;)

  • RE: Problems updating inserted row from within cursor

    I have done this in the past using temp tables, but I cheated and used while loops, but only to build the final output string. It was the most obvious...

    If it was easy, everybody would be doing it!;)

  • RE: Return fields in record set?

    I would model it like this because once you have built the table structure, you have the flexibility to add people and towns as your needs change without have to...

    If it was easy, everybody would be doing it!;)

  • RE: Problems updating inserted row from within cursor

    Because you are building a output string for EDI, it doesn't appear that you will be able to totally get away from some kind of row by row processing, but...

    If it was easy, everybody would be doing it!;)

  • RE: mistake in query

    Excellent! And you found the answer!

    If it was easy, everybody would be doing it!;)

  • RE: Problems updating inserted row from within cursor

    I'm with Gail...not sure a cursor (or nested cursor...yuk) is necessary, but seeing what you are doing would help us determine that.

    Have you investigated using 'UPDATE...FROM'...this allows you to select...

    If it was easy, everybody would be doing it!;)

  • RE: Return fields in record set?

    Just curious as to what your data is modeling...perhaps a different table design would make life easier.

    Rather than have these multiple columns (up to 96 as you say),...

    If it was easy, everybody would be doing it!;)

  • RE: mistake in query

    Try sysdevices in SQL 2000.

    If it was easy, everybody would be doing it!;)

  • RE: mistake in query

    'sys.master_files' does not exist in SQL Server 2000.

    If it was easy, everybody would be doing it!;)

  • RE: are there "arrays" in sql 2005 ?

    I agree with all of the above. I have used both XML and delimited strings to pass in variable-length lists. If you are not using XML anywhere else,...

    If it was easy, everybody would be doing it!;)

  • RE: Create Table runs - no errors - but no table

    Funny how some of the easiest things can trip you up, sometimes for days. :hehe:

    If it was easy, everybody would be doing it!;)

  • RE: Database Pool

    I've seen the term 'database pooling' used in ColdFusion, but that is just database connection pooling, which is what Steve said.

    You should have asked the interviewer what it was. ...

    If it was easy, everybody would be doing it!;)

  • RE: BULK INSERT

    The path in the 'FROM' must be the path from the server where SQL Server is running. Is your 'E:' directory mapped on your SQL Server, or your local...

    If it was easy, everybody would be doing it!;)

Viewing 15 posts - 76 through 90 (of 182 total)