I am having a rather silly question regarding passing over a parameter holding a table name which will be used within the stored procedure.
What is the correct syntax for that example:
DECLARE @TableName varchar (50)
SELECT @TableName = 'Statisctics'
Select * from '@TableName'
gives me always syntax error!
Thanks
Mipo