Hello
I have an Stored - Procedure with many Select's.
It is possible in an SELECT - statement the DB-Name variable to define?
e.g.
DELCARE @DB_Name nvarchar (50)
SET @DB_Name = 'TEST'
if exists (select * from @DB_Name.dbo.table) .....
Thank's [sig][/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.