i am trying to figure out if naming a table with a declared variable is possible. i have a stored procedure that runs one time a week. when i run the sproc, i enter a variable known as @weeknumber. i would like the result set to write to a table with the name of the @weeknumber variable. for example, if i declare @weeknumber = 37, i would like the results written to tblweek37. is this possible?
thanks
thanks