Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute Stored Procedure from VB.Net App

Status
Not open for further replies.

JulesDBQ

Programmer
Apr 17, 2003
22
US
I would like to execute an update stored procedure directly from my vb.net application. I am not providing any input parameters or returning a value. All I need it to do is run from the app.

I have looked through a bunch of the existing threads, but haven't been able to figure out what code I need to use. Does anyone have a code example that would point me in the right direction?

Thanks in advance.
 
Once you have defined your connection and command objects - command.executenonquery should do what you want


Hope this helps.

[vampire][bat]
 
command.commandtype = commandtype.storedprocedure
command.commandtext = storedProcedureName

command.executenonquery


hope it helps
 
Mastakilla -

Once you have defined your connection and command objects

[vampire][bat]
 
well maybe Jules needed more explaination..

He might even think my answer was to brief.


No offense, but you could have said, Once you have defined your connection and command objects, just execute the stored procedure.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top