Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / June 2004

Tip: Looking for answers? Try searching our database.

Stored Procedure Parameters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Kennedy - 13 Jun 2004 12:24 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.