Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Database variable with USE command

$
0
0
Hello Team,I need one help here .I am preparing one Stored proc for different object access. I am taking database name as variable @dbnow I want to use the database provided in SP input as USE @db in stored procedure. I cannot pass database name as it will be different everytime as per user requirement. Any help will be appreciated.

Viewing all articles
Browse latest Browse all 3145

Latest Images

Trending Articles



Latest Images