Truncate table

ManicCW

Well-known member
Joined
Jul 21, 2005
Messages
428
Location
Mostar
Programming Experience
Beginner
How to truncate table using table name as parameter, is it possible?

This does not work:

ALTER PROCEDURE dbo.sp_truncate

@TableName
varchar(50)

AS

TRUNCATE TABLE
@TableName
 
Back
Top