Hi,
Am facing error while executing create procedure statement followed by other insert and update queries as client needs all the queries in single script file.
"Msg 154, Level 15, State 1, Procedure Proc_name, Line 110,
a USE database statement is not allowed in a procedure, function or trigger.
Incorrect syntax: 'CREATE PROCEDURE' must be the only statement in the batch"
this is the error am facing.
Is there any resolve for this?