Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
krugg
Starting Member
12 Posts |
Posted - 2005-10-18 : 07:53:52
|
Hi, The following code is fine for updating a text field for one record in a temp table....---------------------------------------update #tmpRecords set details = nullDECLARE @ptrval binary(16)SELECT @ptrval = TEXTPTR(details) from #tmpRecords where recordId = 1WRITETEXT #tmpRecords.details @ptrval 'valueEntered'---------------------------------------But how can I update each of the records in the table #tmpRecords all at once? Eg there could be 100 rows that need updatingThis doesn't work but here's the SQL pseudocode:Update #tmpRecords set details = WRITETEXT #tmpRecords.details @ptrval select details from tableThatHasTheValuesThanks for any suggestions.....Krugg |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|