dear to all,
i want to make my database name as a dynamic one which i'll make it as as a parameter value in a stored procedure.
pls help me of what the codes should be. any hint or something.
i've tried:
declare @data varchar(10)
set @data = dbName
USE @data
this is not working. error shows. pls help.