HiI want to find out if it's possible to create a tbl using a variable name. Like in this example:Declare @Period varchar(23)Select @Period = 'Newunits_' + Cast(Month(Max(Load_Period)) as Varchar) + '_' + Cast(Year(Max(Load_Period))as Varchar) + '_Matched'from load_Period--Load_Period period is a datetimeSelect Tax_Nbr Into @Periodfrom Newunits
I get the following error:Server: Msg 170, Level 15, State 1, Line 11Line 11: Incorrect syntax near '@Period'.
You can't teach an old mouse new clicks.