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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call SQL Stored Procedure

Status
Not open for further replies.

richself

Technical User
Jun 27, 2005
37
US
I'm connecting to a SQL Database and would like to know how to call a stored procedure from my program. Or would it be easier to create the procedure in VB? My SP are simply, Update_Report, Insert_Report and where created in SQL's Enterprise Manager.

Thanks
 
Me thinks Riverguy's answer are getting shorter.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Do not forget to set the command type to stored procedure

Code:
command.CommandType = CommandType.StoredProcedure
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top