Hi all,
i was created a simple stored procedure like this..
CREATE PROCEDURE sp_date @table varchar(50),@column varchar (20),@From int,@To int
AS
SELECT * FROM @table
WHERE @column BETWEEN (DATEDIFF(second, '1970-01-01 00:00:00','@from')) AND (DATEDIFF(second, '1970-01-01 00:00:00','@to'))
GO
if i create the above procedure i get the error
Must declare the table variable "@table"