Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can we pass a tablename as Parameter to Stored proc.
Message
De
21/03/2005 03:54:53
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Can we pass a tablename as Parameter to Stored proc.
Divers
Thread ID:
00997760
Message ID:
00997760
Vues:
39
Hi All,

How can we pass a tablename as parameter to Stored Procedure. For example If I want to create an SP in the following way:
CREATE PROCEDURE myproc
    @cTablename varchar(40)
AS
SELECT * FROM @cTableName
the above code does not work. Is any other way to do the same.
Pl. help me out


Thanks

Raoshan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform