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/2000; Command Names Pattern

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

CREATE PROCEDURE _newproc ( @cmdName varchar(32) = 'default' )

AS

-- Description: Renames the specified database. -- Developer: rasx@songhaysystem.com IF @cmdName = 'default' BEGIN END

GO

GRANT EXECUTE ON _newproc TO dbWebSolutionsUsers GO

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

mod date: 2007-11-19T23:18:09.000Z