I created the following Stored Procedure however when I try to Exec and pass a value for the table name it says Invalid Object Name '@CheckTable'
Msg 208, Level 16, State 1, Procedure Invalid object name '@CheckTable'.
Exec sp_vcGetStop 'CHECKS_DEC2007','3300000001'
CREATE PROCEDURE [dbo].[sp_vcGetStop]
@CheckTablevarchar(15),
@Sequence numeric(10,0)
AS
BEGIN
SELECT CUID As 'Rt', WorkType
FROM [@CheckTable]
WHERE Sequence = @Sequence
END