Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET 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
 
Old January 24th, 2006, 08:26 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default stored procedures in Oracle

how to write stored procedures .how to execute it.
is it nesasary to write procedures in a package

narasimha
 
Old February 3rd, 2006, 12:45 AM
Friend of Wrox
 
Join Date: Feb 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403
Default

You can write stored procedure either in database or in .NET IDE. It can be executed as follow:

'Coding
Dim strProcedure as string = "ProcedureName"
Dim objcommand as New SqlCommand(strProcedure,"..connection string...")
objcommand.Commandtype = CommandType.StoredProcedure
'Then you can create Dataset or Datareader using this StoredProcedure

Yes, if you are writing Procedure then you will have to pack it in PROCEDURE name like:
 CREATE PROCEDURE procedure_name
'code for procedure

I hope it will help you.

Gaurav





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stored Procedures KeviJay VB Databases Basics 1 June 5th, 2008 07:17 AM
Problems with JSP and Oracle Stored Procedures b247 JSP Basics 1 January 21st, 2005 10:31 AM
call oracle stored procedures from C# k_kosaraju ADO.NET 1 October 21st, 2004 03:03 AM
Calling Oracle Stored Procedures booksnore2 General .NET 0 August 24th, 2004 02:08 PM
Stored Procedures seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 4 June 10th, 2004 10:06 AM





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