Connect 9i from vb6 using ADO

Hi, im havin troubles connectin vb6 usin ADO to Oracle Client 9i, i can connect using OLE DB provider but with MSDAORA i cant connect, why is that?
Can anyone drive me in the right direction??
Thanx

There are two "generic" function modules to read table data from SAP. The one above and RFC_GET_TABLE_ENTRIES. However, most of the time you want to filter/process the data before it leaves SAP as large data handling is slow in VB. If you have ABAP skills it is often better to develop your own RFC enabled function module.
As of the VB access, there is several OCX you can use, documentation link:
http://help.sap.com/saphelp_46c/helpdata/en/39/7e11e0ac6011d189c60000e829fbbd/frameset.htm
Help title: SAP Automation RFC and BAPI Interfaces (BC-FES-AIT
It's all fairly straightforward once you get into it.
PS I almost always use the functions OCX...

Similar Messages

  • Running Crystal report( with subreport)  from VB6 using CRAXDRT.Report

    The application (vb5 with CRAXDRT.Report version 11.5) works for more than 50 different reports.
    This special report has a subreport with 5 Link elements.
    Report works fine with Crystal XI. But when gets fired  from vb6 application, after 2 or 3 times
    (sometimes at the first time), application crashes with following error message pops up:
    vb6.exe-Application Error.
    Instruction at 0x0000000 referenced memory could not be "read"
    The link elements of subreports are:
    (MSP for Main report's stored proc, SSP for Subreport's stored proc)
    MSP . @Prior  -> SSP.@Prior
    MSP . @managerID -> SSP.@managerID
    MSP . @showall -> SSP.@showall
    MSP . officeid-> SSP.@officeid
    MSP . manager -> SSP.manager  (items with @ sign are Parameters)
    If I delete the last link element this error never happens !
    Any clue ?

    For starters, get the latest Service Pack for CR XI r2 from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Make sure you also have the latest SP for VB 6.
    Ludek

  • How do I read a R/3 table from VB6 using RFC?

    I am using a DLL created in VB6 to connect to an R/3 system.  I then call several ABAP functions I have written and exchange data.  This all works nicely.
    I now have a R/3 function into which I pass a parameter, and it gathers some data into a table which has 3 string fields.  I want to pass that data back to my VB6 DLL, and read all the records from the table.
    Unfortunately I have absolutely no idea where to start.  If someone could post an example of reading data directly from a table I would appreciate it.
    Here is the function so far.  It passes the parameter "scenario" to the ABAP Function, and then needs to read the table directly.
        Dim oR3Func As Object
        Dim oFuncLoadDocument As Object
        bResult = Logon(oR3Func, "SAP.BAPI.1")
        If bResult Then
            Set oFuncLoadDocument = oR3Func.Add("ZMT_SET_SCENARIO")
            oFuncLoadDocument.exports("SCENARIO") = sScenario
            bResult = oFuncLoadDocument.Call
            ' Retrieve and read table here???
        End If
    Kind Regards
    Jack

    There are two "generic" function modules to read table data from SAP. The one above and RFC_GET_TABLE_ENTRIES. However, most of the time you want to filter/process the data before it leaves SAP as large data handling is slow in VB. If you have ABAP skills it is often better to develop your own RFC enabled function module.
    As of the VB access, there is several OCX you can use, documentation link:
    http://help.sap.com/saphelp_46c/helpdata/en/39/7e11e0ac6011d189c60000e829fbbd/frameset.htm
    Help title: SAP Automation RFC and BAPI Interfaces (BC-FES-AIT
    It's all fairly straightforward once you get into it.
    PS I almost always use the functions OCX...

  • Connecting NWBC from Gateway using OData

    Hi All,
    I am looking possible option to connect with NWBC client from Odata service.. The reason is - We have some reports created in NWBC and we want to use this reports to avoid any UI development by using the existing reports.
    Can we create a service which receive request from front end UI application in our Gateway server and route the request to NWBC.  So we can see the portal reports..
    Please advice if this is possible..
    -Rajesh

    Ideally you can call anything from the DPC class that ABAP allows you to call.
    May be what you can try is to create an RFC that would call the report and send the data.
    Then you can call the RFC from the DPC class.
    Not sure if this helps you ..

  • Problems connecting Client 9i from vb6

    Hi, ive got an app, which connects to Oracle Client 9i from vb6 using ADO, the problem is that in some client machines i can connect with OraOleDB.Oracle.1 Provider (including mine) but in the others just got a sucessfull connection with MSDAORA provider and i dont know why..
    Can anyone help me in order to use just one provider, thanks

    Hello,
    You must set DNS client on windows (or host name in hosts file)
    regards

  • Problem of security using ADO from Labview to connect to Access 2000 Data Base

    I have a problem using ADO from Labview to connect to Access 2000 Data Base.
    First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
    The problem is the following:
    Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
    I attach
    you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
    Thanks a lot
    Peter Mst
    Attachments:
    SECURITY.zip ‏70 KB
    BD3.mdb ‏112 KB

    Hi Kahn,
    If you use ADODB_connection -> Connection.Open and set in connection string :
    "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
    and after connection.execute ->
    INSERT INTO tabla1 VALUES (5,'XXX'
    you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
    BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
    The problem is when you want to
    use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
    This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
    FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
    1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
    2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
    3. Which is the optimal Provider for Microsoft Access?
    I thank you beforehand for your technical support.
    Peter Mst.
    Attachments:
    BD5.mdb ‏116 KB
    Protegida5.mdw ‏112 KB
    sample_ADO_W2_JET.vi ‏45 KB

  • Calling stored procedure from VB using OraOLEDB.Oracle

    I have a simple stored procedure with two parameters:
    PROCEDURE Test1(
         pOutRecords OUT tCursorRef,
         pIdNumber IN NUMBER);
    where tCursorRef is REF CURSOR.
    (This procedure is part of a package with REF CURSOR declared in there)
    And I have two database schemas: AppOwner and AppUser.
    The above stored procedure is owned by AppOwner, but I have to execute this stored procedure from AppUser schema. I have created a private synonym and granted the neccessary privileges for AppUser schema to execute the package in the AppUser schema.
    When I ran the above procedure from VB using ADO and OraOLEDB.Oracle.1 driver, I got the following error when connecting to the AppUser schema:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'TEST1'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    but when I was connecting to the AppOwner schema, everything is running correctly without errors.
    Also, when I switch to the microsoft MSDAORA.1 driver, I can execute the above procedure without any problems even when connecting to the AppUser schema.
    I got this error only when I am trying to execute a stored procedure with an output parameter. All other procedures with only input parameters have no problems at all.
    Do you know the reason for that? Thanks!

    This forum is meant for discussions about OTN content/site and services.
    Questions about Oracle products and technologies will NOT be answered in this forum. Please post your product or technology related questions in the appropriate product or technology forums, which are monitored by Oracle product managers.
    Product forums:
    http://forums.oracle.com/forums/index.jsp?cat=9
    Technology forums:
    http://forums.oracle.com/forums/index.jsp?cat=10

  • ConnectionString using ADO for Oracle 8

    Hi,
    Is is possible to connect to Oracle 8 using ADO? This connection string works using DAO:
    connect_string = "ODBC;DSN=DSN_NAME;UID=USERID;PWD=PASSWORD;APP=APP_NAME;DB=DATABASE;SRVR=SERVER" .
    Do you need an Oracle 10 database to use ADO?
    Thanks in Advance,
    Bill

    Take a look at this document:
    http://e-docs.bea.com/wls/docs61////jdbc/thirdparty.html
    Hope that helps,
    Nils
    S Gopikrishna wrote:
    >
    Hi
    Thanks a lot for the info. I would appreciate if you can tell me how to install
    and use the oracle thin client from WebLogic server.
    Thanks,
    S Gopikrishna
    "Sree Bodapati" <[email protected]> wrote:
    This variable is set on the machine where Weblogic is started. Also you
    will
    need an oracle client install on this machine. You can skip all this
    by
    using the oracle thin driver which does not need any special client
    environment setup.
    hth
    sree
    "S Gopikrishna" <[email protected]> wrote in message
    news:3c341f8a$[email protected]..
    We are running WebLogic server on Solaris machine. We need to access
    Oracle
    8 Database
    installed on another solaris machine from the weblogic server. Can some
    one
    tell
    me where and how to set the environment variable LD_LIBRARY_PATH to access
    the
    database.
    ============================
    [email protected]

  • Newbie consuming bean from VB6 COM

    Hi - I'm completely new to Beans and am trying to call a Java method from VB6 as 'proof of concept'.
    My java code has one method that returns a string; it compiles OK to a .class file; I can create a .jar using a manifest file containing "Java-Bean: True"; and I can use the activex packager to create a .tlb file.
    When I try to instantiate my class from VB6 using early binding I get "automation error - the specified module could not be found", and late binding using CreateObject just gives me "activex component cannot create object"
    Does anyone have ideas to what the problem is ??
    Thanks, Andrew.

    you need to compile your bean with the ActiveX packager (packager.exe) to a DLL. then you must register the dll (e.g. with regsvr32.exe), then you must reference the component (DLL) in visual basic, and then you can use it:
    Private Sub Form_Load()
        Dim value
        Dim java As Object
        Set java = CreateObject("JavaTestBean.Bean.1") 'create bean object
        java.setValue (3)         'call method setValue() of bean
        value = java.getValue()   'call method getValue() of bean
        MsgBox "Value: " & value  'print calculated value
        Set java = Nothing
    End Sub
    see also http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html

  • Connecting to an Azure SQL Database from VB6

    We have an old Application that is accessing a database located on a client site. We currently access this database using ADO and SQL Authentication. Would it be possible to migrate to Azure SQL Server and connect to it from the VB6 Application by just changing
    the connection string?

    Yes, but you have to make sure that you are not using any features that SQL Azure doesn't support. And make sure that the SQL Azure server address is open for connection from outside. You also need to be concerned about data security.
    Frank

  • Can we connect to oracle 9i using vb6.0 in 64 bit machine.

    Can we connect to oracle 9i using vb6.0 in 64 bit machine.
    Code i have written is
    dim conn as new ADODB.Connection
    conn.open("Provider=MSDAORA.1;password=pw;user id=usname;data source=dbname;Persist Security info=false")
    but it is throwing an error saying
    "Connection not open"
    But the same code is working in vb.net.
    Do we need to install any providers for 64 bit machine?

    I have had no luck doing this in the 64-bit ODAC or otherwise. If anybody succeeds I would love to hear about it. My experience follows for those interested:
    I am trying to migrate some working VB6 code from Windows 2000 Server to 64-bit Windows Server 2003 but can't get the OLEDB connection to Oracle to work.
    In the working code (x86 environment), I am using ADO 2.8 and Microsoft OLEDB Provider for Oracle (MSDAORA). Since the Microsoft OLEDB provider for Oracle is no longer supported or available on Windows Server 2003 x64, I tried to use the 32-bit Oracle OLEDB provider in ODAC 10.2 but may have run into the parsing bug posted on MSDN (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=159581). Next, I successfully installed the beta 64-bit version of ODAC 10.2, but when I try to open the connection I receive "Error 3706 Provider cannot be found. It may not be properly installed." However, I can successfully TNSPing the data source.
    Windows Server 2003 x64 (not Itanium)
    Oracle Enterprise 9.2
    Microsoft Visual Basic 6
    Microsoft ADO 2.8 (Objects & Recordset references)
    Oracle OLEDB Provider (ODAC 10.2, 64-bit)
    Code Snippet:
    Set m_dbConn = New ADODB.Connection
    With m_dbConn
    .ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=oplprod; User ID=myid; Password=mypwd;"
    .ConnectionTimeout = 10
    .CursorLocation = adUseClient
    .Open
    End With

  • How to use non-Unicode mode in VB6 with ADO.

    I'm using ADO on top of OraOLEDB to connect to Oracle 9.2. The database characterset is AL32UTF8. Since my client can't handle Unicode characters, I need a character conversion. However, arcording to the OraOLEDB document( which can be obtained here http://download-west.oracle.com/docs/cd/B10501_01/win.920/a95498/using.htm#1010255):
    "How Oracle Unicode Support Works
    OraOLEDB works in two modes, Unicode mode and non-Unicode mode. When the client character set is not a superset of
    the server character set, OraOLEDB automatically enables the Unicode mode. In this mode, OraOLEDB stores the data in its cache in the UCS2 encoding scheme. The user should ensure that the database's character set is UTF8 in order to prevent any data loss.
    If the client character set is a superset of the server's, the provider operates in the non-Unicode mode. This mode provides slightly better performance as it does not have to deal with larger character buffers required by the UCS2 encoding."
    My client can only use NLS_LANG VN8VN3, which is NOT a superset of AL32UTF8, so "OraOLEDB automatically enables the Unicode mode". So if I code like this:
    Text1.Font="Some Vietnamese Font"
    Text1.Text= rs1.Fields("Name").Value
    the display is bad ('?' all over the place). This is because rs1.Fields("Name").Type is adVarWChar, so rs1.Fields("Name").Value is encoded in UCS2. What I need is to make rs1.Fields("Name").Type is adVarChar, but it seems to be impossible since Field.Type is readonly.
    When I use MS provider for Oracle, I found out that rs1.Fields("Name").Type is adVarChar, so Oracle do the conversion from/to AL32UTF8 (database character set) and VN8VN3(NLS_LANG) for me.
    Since I use LOB and things that MS does not support, I want to use OraOLEDB, so anyone can help me out? It's ugent.
    I can see that some 3rd program like SQLNavigator4.3 work well with NLS_LANG = VN3VN8 and DATABASE_CHARACTERSET=AL32UTF8 (i.e the program convert between the 2 characterset).
    Please correct me if I misunderstood anything.
    I need this ugently. Any help would be appreciated. If I don't make myself clear enough, please let me know.
    Thanks in advance.

    Thank you for your reply. I started to think that everybody is out on holidays...
    The Oracle9i Client version is 9.2.0.1.0
    Oracle Provider for OLEDB version is 9.2.0.4.0
    Oracle Net version is 9.2.0.1.0, in case you need it.
    The Oracle9i Database version is 9.2.0.1.0
    But I don't think it is a version problem, is it?

  • Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    Hi there, I am trying to connect to my server at work from home using a vpn connection. It connects fine and the time ticks along, but when i click go - connect to server, it comes up with connection failed. Please help!

    ... when i click go - connect to server, it comes up with connection failed.
    If you're trying to connect to a Bonjour server on the remote network, that won't work over a layer 3 VPN. Use something like Hamachi or one of the SSH-tunnelling Bonjour proxy apps for that.

  • WHEN I USED TO CONNECT INTERNET FROM MY IPHONE 4S PERSONAL HOTSPOT VIA USB, AN ICON IN THE NETWORK PREFERENCE NAMED "IPHONE" GETS OPENED.... BUT NOW THIS IS NOT HAPPENING AND I AM NOT ABLE TO CONNECCT PERSONAL HOTSPOT VIA USB CABLE. PLEASE HELP ME OUT

    WHEN I USED TO CONNECT INTERNET FROM MY IPHONE 4S PERSONAL HOTSPOT VIA USB, AN ICON IN THE NETWORK PREFERENCE NAMED "IPHONE" APPEARS.... BUT NOW THIS IS NOT HAPPENING AND I AM NOT ABLE TO CONNECT PERSONAL HOTSPOT VIA USB CABLE. PLEASE HELP ME OUT???

    Please don't shout!   Using all uppercase means shouting on the internet.  If your keyboard is stuck please say so, otherwise people will think you are being obnoxious.
    Now the first question is, when you are saying connecting to personal hotspot, have you always been using the iPhone to connect to the internet?   Are you someplace where the only place to connect is available via tethering to the iPhone's celluar network?  Or do you have other options?

  • HT3576 How can I get rid of "Connect to itunes to use push notifications" pop-ups.  I just had to replace my iPhone 5 and when I did a restore from backup, most of my apps will not let me in becuase I cannot get past the"connect to itunes..." message.

    My iPhone 5 was distroyed so I replaced it with a new iPhone 5 yesterday.  I did a restore from a backup that i had performed a week ago.  When I tried to use the phone several of my apps would not let me in becuase they continually gave me a popup message "Connect to Itunes to use push notifications".  I click ok and the popup comes back.  I have shut my phone off several times.  I have complete closed the apps several times.  I have even deleted the apps from my phone and reinstalled.  All to no avail.  Please help - does anyone know how to fix this?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

Maybe you are looking for

  • Using a CWM format XML as datastore; COM SDK to read the file and create Universe

    Hello everyone We are in the process of migrating from a metadata store to BusinessObjects Universe and the plan is to use Java/COM SDK to accomplish that. We have run into limitations with both the SDKs. Java SDK doesn't provide that facility and us

  • Creating multple triggers

    I have over 200 triggers declared in a .sql file, and When I attempt to run the entire file in sqldeveloper, instead of creating all the triggers, it only creates the first trigger, and uses the entire sql file as the body for the trigger. What am I

  • Create Interactive Zoom and Pan (in out, left, right)

    Hello Flash Forum, I have been checking the forum for ideas and suggestions on how to implement an interactive zoom and pan on an image. I would like the user to be able to drag a "magnifing glass" over an image, and then zoom in (or out) on the area

  • JBO-27010: Attribute set ... has invalid precision/scale

    We have created a table ACCOUNT with a column RATE defined as NUMBER(5, 3). Bc4j has created the corresponding entity object Account with: <Attribute Name="Rate" Type="oracle.jbo.domain.Number" ColumnName="RATE" ColumnType="NUMBER" SQLType="NUMERIC"

  • Location settings greyed out on iPhone6

    I am unable to select several areas of the Settings.  iCloud is logged in with my id but the iCloud in settings is greyed out.  All the controls for Location settings including turning it on and off are not selectable, greyed out.  Several other area