Is there a way to pass table's name to a stored procedure?
This is what I am trying to do:
CREATE PROCEDURE NAME_PROC
(
@TABLENAME varchar(30)
)
AS
CREATE TABLE @TABLENAME (OID int IDENTITY(1, 1) PRIMARY KEY CLUSTERED,......)
GO
but raise a sintax error near @TABLENAME