SQL EXCEPTION ABOUT THE SCALAR VARIABLE

Posted by ramchandrabandaru-3642 under Regular Expressions on 3/5/2010 | Views : 1811 | Status : [Member] | Replies : 2
SqlException like this
Must declare the scalar variable "@sid"
what is the reason behind that?




Responses

Posted by: Raja on: 3/5/2010 [Member] Starter

Up
0
Down
Looks like you are missing the declaration of SqlParameter for the input parameter you are passing as @sid.

Ensure that you are passing all the parameters defined in the SQL Statement to the SqlCommand object through SqlPatameter.

Thanks

Regards,
Raja, USA

ramchandrabandaru-3642, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: ramchandrabandaru-3642 on: 3/5/2010 [Member] Starter

Up
0
Down
ThakQ you very much
I am done as your specification


ramchandrabandaru-3642, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response