ALTER TABLE AdminTool..TblRestraintChar
ADD idx int IDENTITY(1,1) NOT NULL
GO

ALTER  PROC USPDeleteRestraintChar @SeverID tinyint,@nidx INT
AS


	SET NOCOUNT ON


	IF EXISTS (SELECT UID FROM TblRestraintChar WHERE tinyServerID=@SeverID AND idx = @nidx)
	BEGIN
		DELETE TblRestraintChar 
		WHERE tinyServerID=@SeverID AND idx = @nidx

		SELECT @@ROWCOUNT
	END
	ELSE
	BEGIN
		SELECT -1
	END
GO
