Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store fields info into one field?
Message
From
13/07/2006 16:23:46
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01136213
Message ID:
01136220
Views:
10
Not so simple Borislav :-)

I need to select all fields, but I don't know the name of all fields... because it could be any table... my function must be general...

I have already did the following, but I cannot store the result into a field or at least into a variable. How can I do that?
SELECT * FROM inserted FOR XML AUTO
In SQL Help, I found this:
For example, subselect as shown in this example is NOT supported:
DECLARE @doc nchar(3000)
SET @doc = (SELECT * FROM Customers WHERE CustomerID = 'ALFKI' FOR XML RAW)
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform