LucieLastic
Programmer
hi All
I'm using Sybase so I'm hoping the syntax will be the same, but I can't get the following to work - Can anyone shed any light?
CREATE PROC TruncateTables (@TableName varchar(35))
AS
TRUNCATE TABLE @TableName
RETURN
error:
Server Message: Number 102, Severity 15
Procedure 'TruncateTables', Line 3:
Incorrect syntax near '@TableName'.
many thanks for any help
lou
I'm using Sybase so I'm hoping the syntax will be the same, but I can't get the following to work - Can anyone shed any light?
CREATE PROC TruncateTables (@TableName varchar(35))
AS
TRUNCATE TABLE @TableName
RETURN
error:
Server Message: Number 102, Severity 15
Procedure 'TruncateTables', Line 3:
Incorrect syntax near '@TableName'.
many thanks for any help
lou