SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On



Difference between Stuff and Partial update clause write Expand / Collapse
Author
Message
Posted Thursday, July 30, 2009 11:29 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, February 13, 2010 2:23 AM
Points: 129, Visits: 236
Hi,
Can any body tell me the main difference between the partial update clause WRITE and the STUFF() function.

Thanks
Ezhil
Post #762901
Posted Friday, July 31, 2009 8:08 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 3:56 PM
Points: 20,164, Visits: 13,699
Yes... one works on the TEXT datatype and the other doesn't. Please refer to Books Online for details.... Books Online comes free with SQL Server.

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/

For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #763486
« Prev Topic | Next Topic »


Permissions Expand / Collapse