first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

T-SQL: Stored Procedure Structure for Microsoft SQL Server 7.0

USE DatabaseName GO

IF OBJECT_ID('StoredProcName') IS NOT NULL BEGIN DROP PROCEDURE StoredProcName IF OBJECT_ID('StoredProcName') IS NOT NULL PRINT '<<< FAILED DROPPING PROCEDURE StoredProcName >>>' ELSE PRINT '<<< DROPPED PROCEDURE StoredProcName >>>' END GO

CREATE PROCEDURE StoredProcName ( @param int = 0 ) AS

-- Description: Stored proc' structure for SQL Server 7.0. -- Developer: rasx

SET NOCOUNT ON

-- This proc' takes advantage of the new security features in SQL Server 7.0.

RETURN GO

GRANT EXECUTE ON StoredProcName TO [Windows NT Group] GO

IF OBJECT_ID('StoredProcName') IS NOT NULL PRINT '<<< CREATED PROCEDURE StoredProcName >>>' ELSE PRINT '<<< FAILED CREATING PROCEDURE StoredProcName >>>' GO

mod date: 2007-11-19T23:14:21.000Z