473,394 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ORACLE

Hi group!
Does anybody know how to call a Package from a VB.Net Win App?

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY
----------------------------------------------------------------------------
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
----------------------------------------------------------------------------
----------------------
Nov 17 '05 #1
3 1120
YOu can use the package name and oraclereader to get the results.
"Sebastián_UY" <NO***********@poderjudicial.gub.uy> wrote in message news:<ub**************@tk2msftngp13.phx.gbl>...
Hi group!
Does anybody know how to call a Package from a VB.Net Win App?

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY
----------------------------------------------------------------------------
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
----------------------------------------------------------------------------
----------------------

Nov 17 '05 #2
Hey ajay, thanx for your quick answer.
Could you please point me at some example. I'm not familiar with packages.
What I've done so far is dragging tables to the datasets, I tryied to drag a
package but it was not possible.
Could you please help me aout here???

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY
----------------------------------------------------------------------------
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
----------------------------------------------------------------------------
----------------------
"ajay" <aj********@yahoo.com> wrote in message
news:11**************************@posting.google.c om...
YOu can use the package name and oraclereader to get the results.
"Sebastián_UY" <NOSPAM_sg****@poderjudicial.gub.uy> wrote in message news:<ub**************@tk2msftngp13.phx.gbl>...
Hi group!
Does anybody know how to call a Package from a VB.Net Win App?

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY


--------------------------------------------------------------------------

--
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------------------------------------------------------------

-- ----------------------

Nov 17 '05 #3
Sebastian
Sorry for being late:
You can try it using a class where you can have a function like the
following:
Public Shared Function getAccountNbrs(ByVal a_acct_seq As Long, ByVal
a_objDB As Data.DbObject) As OracleDataReader
Dim objNull As Object = System.DBNull.Value
Dim param(1) As OracleParameter
Dim orareader As OracleDataReader
param(0) = New OracleParameter("a_reccur",
OracleType.Cursor, 2000, ParameterDirection.Output, True, 0, 0, "",
DataRowVersion.Default, objNull)
param(1) = New OracleParameter("a_acct_seq",
OracleType.Number, 22, ParameterDirection.Input, True, 0, 0, "",
DataRowVersion.Default, a_acct_seq)
orareader =
a_objDB.ExecProcedure("Pkg_Bill_Ui.p_get_account_s eq", param)
Return orareader

End Function
Here package name is Pkg_Bill_Ui and we are calling a procedure within
it and which is p_get_account_seq. This has an input of type Cursor,
which is a_reccur.
use command.ExecuteNonQuery() for executing procedure for executing
the package stuff and get the result like this;
result = CInt(command.Parameters("ReturnValue").Value)
HTH
"Sebastián_UY" <NO***********@poderjudicial.gub.uy> wrote in message news:<eC**************@TK2MSFTNGP11.phx.gbl>...
Hey ajay, thanx for your quick answer.
Could you please point me at some example. I'm not familiar with packages.
What I've done so far is dragging tables to the datasets, I tryied to drag a
package but it was not possible.
Could you please help me aout here???

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY
----------------------------------------------------------------------------
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
----------------------------------------------------------------------------
----------------------
"ajay" <aj********@yahoo.com> wrote in message
news:11**************************@posting.google.c om...
YOu can use the package name and oraclereader to get the results.
"Sebastián_UY" <NO***********@poderjudicial.gub.uy> wrote in message

news:<ub**************@tk2msftngp13.phx.gbl>...
Hi group!
Does anybody know how to call a Package from a VB.Net Win App?

TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sg****@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY


--------------------------------------------------------------------------

--
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------------------------------------------------------------

-- ----------------------

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no...
4
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
13
by: Chris Botha | last post by:
The machine is running XP Pro with all the latest service packs, etc. I must access an Oracle database so I installed the Oracle client stuff. I can query Oracle from a Windows app, no problem....
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers:...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: sathyguy | last post by:
when i type the below in my RHEL AS 4's Firefox 1.5 http://appsworld.ncc.com:7777/forms/...&form=test.fmx iam getting the below error... The requested URL /forms/frmservlet was not found on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.