Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store fields info into one field?
Message
De
13/07/2006 16:23:46
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01136213
Message ID:
01136220
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform