Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 28th, 2006, 02:46 PM
Authorized User
Join Date: Apr 2006
Location: , , .
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default Working with Stored Procedure

Can anybody tell me if I can run two insert statements in two different table and two update statements in two different table from one stored procedure.
please help .

  #2 (permalink)  
Old May 16th, 2006, 02:00 AM
Registered User
Join Date: Apr 2006
Location: JUBAIL, , Saudi Arabia.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Yes you can

make the stored procedure and put all the inserts and updates you want and then call it

this is an example to call stored oracle procedure

Dim DBConn As OracleClient.OracleConnection = New OracleClient.OracleConnection
Dim strConnection As String

'Get connection string from Web.Config
 strConnection = ConfigurationSettings.AppSettings("ConnectionStrin g")
 DBConn.ConnectionString = strConnection

Dim AdmCom As OracleClient.OracleCommand = New OracleClient.OracleCommand("Procedure_name", DBConn)
AdmCom.CommandType = CommandType.StoredProcedure

AdmCom.Parameters().Add("p_first_name_s", Trim(FirstName.Text))
AdmCom.Parameters().Add("p_mid_name_s", Trim(SecondName.Text))
AdmCom.Parameters().Add("p_third_Name_s", Trim(ThirdName.Text))



Similar Threads
Thread Thread Starter Forum Replies Last Post
stored procedure prashant_telkar SQL Server 2000 1 July 9th, 2007 07:57 AM
Stored Procedure isn't working yougotiger BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 January 5th, 2007 06:53 PM
working with stored procedure and asp rashoova Classic ASP Databases 0 February 1st, 2006 10:19 AM
stored procedure kvanchi ADO.NET 1 December 9th, 2004 07:27 AM
Stored Procedure desireemm SQL Language 5 September 18th, 2004 02:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.