Click here to Skip to main content
15,900,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralLinking MSDN... Pin
Anonymous21-Apr-05 23:38
Anonymous21-Apr-05 23:38 
GeneralRe: Linking MSDN... Pin
Smithkhline22-Apr-05 0:37
sussSmithkhline22-Apr-05 0:37 
GeneralRe: Linking MSDN... [EDITED] Pin
Dave Kreskowiak22-Apr-05 0:59
mveDave Kreskowiak22-Apr-05 0:59 
GeneralRe: Linking MSDN... [EDITED] Pin
Scott Serl22-Apr-05 8:09
Scott Serl22-Apr-05 8:09 
GeneralExport Crystal Report to Word Pin
IvanChang21-Apr-05 21:42
IvanChang21-Apr-05 21:42 
GeneralCalling Oracle Stored Functions Pin
Jorge Estrada21-Apr-05 18:01
Jorge Estrada21-Apr-05 18:01 
GeneralRe: Calling Oracle Stored Functions Pin
Christian Graus21-Apr-05 19:00
protectorChristian Graus21-Apr-05 19:00 
GeneralRe: Calling Oracle Stored Functions Pin
Jorge Estrada22-Apr-05 4:31
Jorge Estrada22-Apr-05 4:31 
Hi Christian, I think is not an issue with drivers becouse I can call Stored Procedures fine, however I can't call Functions which are stored in Oracle Packages.
I am using the next code in VB Net:

Public Sub MY_PKG_ADD_NEW_ITEM(ByVal ConnectionString As String _
, ByRef N_ITEM_ID_O As Integer _
, ByVal V_ITEM As String)

Dim oConn As New OracleConnection(ConnectionString)
Dim oraCmd As New OracleCommand("", oConn)
oraCmd.Connection = oConn
oConn.Open()
oraCmd.CommandText = "MY_PKG.ADD_NEW_ITEM"
oraCmd.CommandType = CommandType.StoredProcedure

'oraCmd.Parameters.Add(New OracleParameter("N_ITEM_ID_O", OracleType.Number, 3)).Direction = ParameterDirection.Output
'oraCmd.Parameters.Add(New OracleParameter("V_ITEM", OracleType.VarChar, 2000)).Value = V_ITEM
'oraCmd.Parameters(1).Direction = ParameterDirection.Input
Try
oraCmd.ExecuteNonQuery()
N_ITEM_ID_O = oraCmd.Parameters("N_ITEM_ID_O").Value
Catch
'MsgBox(Err.Description)
Finally
oraCmd.Dispose()
oConn.Close()
End Try
End Sub

The error what I am receiving is:

ORA-06550: line 1, column 7:
PLS-00221: 'ADD_NEW_ITEM' is not a procedure or is not defined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

The software I am using is:

VB Net 2002 version
Oracle driver is System.Data.OracleClient (.NET Framework Data Provider for Oracle)
I am getting conected to an Oracle 9i data source.

I hope this info complete my scenario so to get more help from you.

Thanks in advanced !!OMG | :OMG:
GeneralRe: Calling Oracle Stored Functions Pin
Mohamed Ishak22-Apr-05 20:47
professionalMohamed Ishak22-Apr-05 20:47 
GeneralRe: Calling Oracle Stored Functions Pin
Jorge Estrada25-Apr-05 3:08
Jorge Estrada25-Apr-05 3:08 
Questionwhat is wrong with this code????? Pin
hjaycox21-Apr-05 14:08
hjaycox21-Apr-05 14:08 
AnswerRe: what is wrong with this code????? Pin
Dave Kreskowiak21-Apr-05 16:32
mveDave Kreskowiak21-Apr-05 16:32 
GeneralRe: what is wrong with this code????? Pin
hjaycox22-Apr-05 9:38
hjaycox22-Apr-05 9:38 
GeneralRe: what is wrong with this code????? Pin
Dave Kreskowiak22-Apr-05 13:10
mveDave Kreskowiak22-Apr-05 13:10 
GeneralListView DragDrop Pin
RobDog88821-Apr-05 13:01
RobDog88821-Apr-05 13:01 
GeneralRe: ListView DragDrop Pin
Dave Kreskowiak21-Apr-05 16:19
mveDave Kreskowiak21-Apr-05 16:19 
GeneralRe: ListView DragDrop Pin
Anonymous21-Apr-05 18:56
Anonymous21-Apr-05 18:56 
GeneralRe: ListView DragDrop Pin
Dave Kreskowiak22-Apr-05 0:57
mveDave Kreskowiak22-Apr-05 0:57 
GeneralRe: ListView DragDrop Pin
RobDog88822-Apr-05 6:28
RobDog88822-Apr-05 6:28 
GeneralHelp: Combo Box Items Pin
Anonymous21-Apr-05 11:36
Anonymous21-Apr-05 11:36 
GeneralRe: Help: Combo Box Items Pin
Dave Kreskowiak21-Apr-05 16:13
mveDave Kreskowiak21-Apr-05 16:13 
Generalsetting a variable NAME Pin
mike2k521-Apr-05 8:29
mike2k521-Apr-05 8:29 
GeneralRe: setting a variable NAME Pin
Anonymous21-Apr-05 9:26
Anonymous21-Apr-05 9:26 
GeneralRe: setting a variable NAME Pin
Colin Angus Mackay22-Apr-05 0:32
Colin Angus Mackay22-Apr-05 0:32 
GeneralQuery !! Pin
vishalmishra21-Apr-05 7:51
vishalmishra21-Apr-05 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.