My question is about how to refer to an object in a stored procedure. I want to know if something like this is possible:
create proc drop_table @tablename ??
as
drop table @tablename
What about something like this?
create or alter proc select_col @col_name nvarchar(50), @table_nbame nvarchar(50)
as
select @col_name
from @table_nbame
Can I create a variable and refer to a table in a SP?