Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Must declare the scalar variable "@rollno".
Posted
Comments
Prasad_Kulkarni 9-Mar-12 6:33am    
From error i guess you din't declared variable rollno,
post some code so we come to know exact problem
LaxmikantYadav 9-Mar-12 6:45am    
Share the affected code.

Probably sql server instead of asp.net?
DECLARE @ROLLNO INT


Good luck!
 
Share this answer
 
If you are calling sp from your code then you might missing to add parameter to sp

For e.g
SqlParameter param = new SqlParameter("@rollno",System.Data.SqlDbType.VarBinary, param .Length);
cmd.Parameters.Add(param);
 
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