In my ASP.net book it says you can put the sql of a stored procdure in which
you use parameters in the commandtext property in the designer and it will
automatically generate the code for adding the parameter objects to the
command objects. All's I get is an unable to parse update statement error.
What am I doing wrong, as it would save so much code if you didn't have to
manually add the paramters. Regards, Chris.
Calvin Luttrell/ProjectThunder.com - 13 Jun 2004 21:29 GMT
Chris,
Can you test your query in Query Analyser? Sounds like maybe there is something wrong there?
-Calvin Luttrell
www.projectthunder.com
Enter to win a XBOX or a Portable DVD Player
Monitored forums www.projectthunder.com/forums
> In my ASP.net book it says you can put the sql of a stored procdure in which
> you use parameters in the commandtext property in the designer and it will
> automatically generate the code for adding the parameter objects to the
> command objects. All's I get is an unable to parse update statement error.
> What am I doing wrong, as it would save so much code if you didn't have to
> manually add the paramters. Regards, Chris.
Chris Kennedy - 14 Jun 2004 11:26 GMT
It was copy and pasted from the query analyser. By the way I am using VB.net standard but I can't see that being a problem.
Chris,
Can you test your query in Query Analyser? Sounds like maybe there is something wrong there?
-Calvin Luttrell
www.projectthunder.com
Enter to win a XBOX or a Portable DVD Player
Monitored forums www.projectthunder.com/forums
> In my ASP.net book it says you can put the sql of a stored procdure in which
> you use parameters in the commandtext property in the designer and it will
> automatically generate the code for adding the parameter objects to the
> command objects. All's I get is an unable to parse update statement error.
> What am I doing wrong, as it would save so much code if you didn't have to
> manually add the paramters. Regards, Chris.
William Ryan eMVP - 14 Jun 2004 18:36 GMT
How are you doing this, I didn't think there was visual support for SQL
Server in Standard edition?

Signature
W.G. Ryan, eMVP
http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
> In my ASP.net book it says you can put the sql of a stored procdure in which
> you use parameters in the commandtext property in the designer and it will
> automatically generate the code for adding the parameter objects to the
> command objects. All's I get is an unable to parse update statement error.
> What am I doing wrong, as it would save so much code if you didn't have to
> manually add the paramters. Regards, Chris.