Connecting Tech Pros Worldwide Help | Site Map

Error occured in execution of Procedure

  #1  
Old February 26th, 2009, 05:24 AM
Member
 
Join Date: Dec 2008
Posts: 32
Hi All,

The code is:


Execute xyz @age=12,@name='suman'

alter procedure xyz
(
@age int,
@name VarChar(15)
)
as
Begin

create table #xyz(
age int,name varchar(15))
insert into #xyz values(@age,@name)
select * from #xyz
end


When i execute the procedure i am getting this error::-
Server: Msg 111, Level 15, State 1, Line 4
'ALTER PROCEDURE' must be the first statement in a query batch.
Server: Msg 137, Level 15, State 1, Line 14
Must declare the variable '@age'.


Please help me for the needful.

Thanks in advance.

Rgds,
Sumanta Panda



  #2  
Old February 26th, 2009, 08:35 AM
Member
 
Join Date: Dec 2008
Posts: 32

re: Error occured in execution of Procedure


Dear All,
I have resolved the problem.Its working perfectly.

Thanks!!

Rgrds,
Sumanta Panda
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
OWS-05101: Execution failed due to Oracle error -6564 umeshchitta answers 1 March 20th, 2008 07:05 AM
Stored procedure exception in .NET works fine in Query Analyzer Frawls answers 9 January 23rd, 2007 10:15 PM
Object conversion error on insert with FormView and ObjectDataSour Dabbler answers 2 April 18th, 2006 06:35 PM
exporting crystal report to Excel Mustufa Baig answers 2 November 19th, 2005 11:50 AM