Click here to Skip to main content
16,004,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What's the error in this SQL statement there's underline in where and @proId
could you help ????
SQL
create proc dbo.[UpdateProgram]
(@firstpro nvarchar(50),@secondpro nvarchar(50))

as update Programs
set
   FirstPro=@firstpro,
   secondpro=@secondpro,
   
   WHERE(ProId =@proId)
Posted
Updated 17-Dec-11 20:32pm
v2
Comments
thatraja 18-Dec-11 0:03am    
whats the error message?

SQL
update Programs
set
   FirstPro=@firstpro,
   secondpro=@secondpro

   WHERE(ProId =@proId)


you have placed a , at the end of @secondpro which is not needed.. Check now
 
Share this answer
 
Comments
Sarah Mohammed77 17-Dec-11 23:50pm    
You aright but still have red line under @proId
AmitGajjar 17-Dec-11 23:53pm    
do semicolon after your query...
Sarah Mohammed77 18-Dec-11 0:10am    
Thank you just I forgot to declare it :)
You didn't declare the variable @proId in you stored procedure
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900