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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Using WRITETEXT to update text fields

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 = null

DECLARE @ptrval binary(16)
SELECT @ptrval = TEXTPTR(details) from #tmpRecords where recordId = 1

WRITETEXT #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 updating

This doesn't work but here's the SQL pseudocode:

Update #tmpRecords set details = WRITETEXT #tmpRecords.details @ptrval select details from tableThatHasTheValues


Thanks for any suggestions.....
Krugg

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-10-18 : 08:00:01
Refer UPDATETEXT in BOL
Refer this also
http://www.nigelrivett.net/SQLTsql/InsertTextData.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -