MattDavies51
Programmer
Hi, I'm hoping that somebody can help me here.
Basically, I'm passing the parameter @db_desc into a stored procedure. @db_desc is the name of a SQL Server database residing on the same SQL Server.
I want to use this parameter to identify the database in a select statement, like so:
select * from @db_desc..<table_name> where <expression>
Any ideas?
Regards
Matt
Basically, I'm passing the parameter @db_desc into a stored procedure. @db_desc is the name of a SQL Server database residing on the same SQL Server.
I want to use this parameter to identify the database in a select statement, like so:
select * from @db_desc..<table_name> where <expression>
Any ideas?
Regards
Matt