Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a schema on function
Message
De
02/06/2008 08:09:21
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Find a schema on function
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01320930
Message ID:
01320930
Vues:
78
hi,

i want to get the schema for a file on a function, I use to have this on other SP as following:-

DECLARE @RESULT VARCHAR(100);SET @RESULT=''
DECLARE @mpq int;SET @mpq=0
DECLARE @FILENAME VARCHAR(40);SET @FILENAME='parm'
SELECT @RESULT =SCHEMA_NAME((SELECT SCHEMA_ID FROM SYS.TABLES WHERE NAME=@FILENAME)+'.'
SELECT @MPQ = SELECT MPQ FROM @RESULT + 'PARM'

Thanks for any help.



Best Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform