- USE master
- GO
IF OBJECTPROPERTY(OBJECT_ID('dbo.sp_script_PK'), 'IsProcedure') = 1
DROP PROCEDURE sp_script_PK
GO
CREATE PROCEDURE sp_script_PK
@tabname sysname = ' '
,@dropflag tinyint = 0
AS
SET NOCOUNT ON
SET IMPLICIT_TRANSACTIONS OFF
DECLARE @buffer varchar(255)
IF @tabname = ' '...