=SELECT * FROM [dbo].[t" + Parameters!version.Value+ "]
=SELECT * FROM [dbo].[t" & Parameters!version.Value & "]
="SELECT * FROM [dbo].[t" & Parameters!version.Value & "]"
CREATE OR ALTER PROCEDURE SwitchTable @R INT = 1
AS
IF @R = 1 SELECT * FROM T1
IF @R = 2 SELECT * FROM T2
GO
EXECUTE SwitchTable @P