|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can I use WRITETEXT/UPDATETEXT in a Set operationusing sql server 2k
I think I already know the answer, but ... Is there anyway to use WRITETEXT or UPDATETEXT in a set operation like the following which, of course, doesn't work. update dbo.mytbl set txtcol = WRITETEXT dbo.mytbl.txtcol TEXTPTR(txtcol) 'some new text for colID' + cast(colID as varchar) I know that I can simply SET the field as normal (and will probably end up doing that), but I would like to avoid logging if possible. thanks in advance... -- kevin... kevin (ke***@discussions.microsoft.com) writes:
> using sql server 2k No. WRITETEXT works for one value at a time.> > I think I already know the answer, but ... > > Is there anyway to use WRITETEXT or UPDATETEXT in a set operation like the > following which, of course, doesn't work. > > update dbo.mytbl > set txtcol = WRITETEXT dbo.mytbl.txtcol TEXTPTR(txtcol) 'some new text for > colID' + cast(colID as varchar) > > I know that I can simply SET the field as normal (and will probably end up > doing that), but I would like to avoid logging if possible. -- Erland Sommarskog, SQL Server MVP, esq***@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
stored procedure table dependency
Performance and Index Pulling data from Access database into Intranet? Row-level security importing from Paradox I'm losing my tildes over here! DateTime Conversion Need help on checking indexes on tables XML Data Type - Illegal Characters How to get the running full sql statement |
|||||||||||||||||||||||