Cannot create procedure ‘%.*ls’ with a group number of %d because a procedure with the same name and a group number of 1 does not currently exist in the database. Must execute CREATE PROCEDURE ‘%.*ls’;1 first.

Error Message:
Msg 2730, Level 11, State 1, Procedure ShowMe, Line 5
Cannot create procedure ‘%.*ls’ with a group number of %d because a procedure with the same name and a group number of 1 does not currently exist in the database. Must execute CREATE PROCEDURE ‘%.*ls’;1 first.

Severity level:
11.

Description:
This error message appears when you try to create a procedure with a group number > 1 for which no procedure with a group number of 1 exists.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
Error of the Severity Level 11 are generated by the user and can be fixed by the SQL Server user. The statement cannot be executed this way. You must first create a procedure with a group number of 1, before you can create procedures with higher group numbers

Versions:
All versions of SQL Server

Example(s):
USE tempdb;
GO
CREATE PROCEDURE dbo.ShowMe;2
AS
SET NOCOUNT ON
SELECT GETDATE();
RETURN 0
GO

Remarks:
In the above example we try to create a procedure with a group number of 2. Because no procedure with a group number of 1 exists, the error is raised.




Array

No comments yet... Be the first to leave a reply!