Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store fields info into one field?
Message
 
To
13/07/2006 16:07:11
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01136213
Message ID:
01136215
Views:
11
>I want to select the complete last updated record and insert the concatenated info (header + value) into one field. I thing it's possible using a query like this... "select * from inserted for xml auto"... but my question is how can I store the result into a variable (string)?
DECLARE @testStr varchar(8000)

SELECT @testStr = Header + Value FROM .....
print @testStr
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform