VBScript: can't connect to OraDB with no error shown

Hi all!
I've wrote a simple VB Script program which uses tnsnames.ora file to connect to Oracle 10g2 DB.
Here it is:
Dim connectionString: connectionString = "DRIVER={Microsoft ODBC for Oracle}; SERVER=mydb;User Id=system;Password=" & DBpassword & ";"
Dim connection: Set connection = CreateObject("ADODB.Connection")
Dim rows: Set rows = CreateObject("ADODB.Recordset")
connection.Open connectionString
connection.Close
I have 2 copies of databases: test and productoinal. I run the script from my localhost machine. For test envirinment in work okay, but for productional i'm getting the strange error:
C:\oracle\admin\Script\myscript.vbs(93, 1) Microsoft OLE DB Provider for ODBC Drivers: (Microsoft)(ODBC driver for Oracle)(Oracle)
C:\oracle\admin>pause
Press any key to continue . . .
No errors, but still no connection :( Line 93 is connection.Open connectionString.
I've verified that tnsnames.ora is correct and ORACLE_HOME variable is set. DB OS is Windows Server 2003.
Edited by: chii on Sep 8, 2008 5:03 AM

1) It looks like there is an error-- it just looks like it is getting cut off. What is at line 93 of your script? Is that the "Dim connection" line?
2) Is there a reason that you need to use the Microsoft ODBC driver for Oracle? Rather than the Oracle ODBC driver? The Microsoft driver is rather ancient and may not work properly on newer Oracle clients because certain OCI functions it depends on have been desupported.
Justin

Similar Messages

  • Can I connect two macs with thunder bolt ?

    can i connect two macs with thunderbolt like I do with firewire and IP? I don't want to transfer files by using the control "T" at startup . I want use VNC to control one mac from the other and use thunderbolt vs ethernet.
    thanks for any help

    You can connect the two.  Whether you can use VNC, I have no idea.
    http://store.apple.com/us/product/MC913ZM/A
    Ciao.

  • Satellite L20-101: can't connect my TV with the svhs

    Hi dudes,
    i have a problem.
    I have a L20 - 101 and i can't connect my tv with the svhs exit of my toshiba.
    I reinstalled drivers for motherboard and videographics, what can i try?
    thanks

    Ok, sounds like a really un-nice problem.
    So, how do you try to switch to the TV? You have the option in your display properties, but does the machine *recognize* the TV? You have also the key combination FN+F5 to change the display, did you already tried it?
    And regarding your display drivers (which vga do you have? nvidia or ati?)
    You can take a look here to find the latest working drivers for mobile platforms:
    http://www.laptopvideo2go.com/
    http://www.omegadrivers.net/
    Good luck buddy

  • Can i connect my HDTV with ipad

    Can i connect my HDTV with ipad?

    gyrhead is right - a short video embed to further explain ( hopefully it works )
    Regards.
    Embed did not work as I thought -
    heres a link : http://youtu.be/UnyyCMPyTq8

  • How can i connect the mac with internet key?

    how can i connect the mac with internet key?
    I try but it tolds me that I haven't the javaruntime...

    I try, but to run javapreferences computer told me that I must have a Java runtime... thankyou

  • I have mobile internet at the moment via a USB stick in my laptop. Can I connect my Timecapsule with a cable to this laptop and make it into a wifi station??

    I have mobile internet at the moment via a USB stick in my laptop. Can I connect my Timecapsule with a cable to this laptop and make it into a wifi station so that I can use my iPad?
    THanks for your help!

    for #1
    Frequently asked questions about Apple ID - Apple Support
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    for #2
    Apple does not accept unsolicited ideas see Apple - Legal - Unsolicited Idea Submission Policy

  • How can i connect iphone 4 with other mobile through bluetooth

    how can i connect iphone 4 with other mobile through bluetooth

    You can't. iPhone does not have this feature.
    Some iOS apps will allow you to connect to other iOS devices for peer-to-peer games, or sending photos, but not to other makes of phone.

  • Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Can I connect a monitor with built in speakers to my macbook air?

    Can I connect a monitor with built-in speakers to my macbook air?  What would you suggest in the 22" - 24" size for everyday use?

    If you say that there is built in speakers. Most probably the connection is HDMi. You will need an adapter to connect the MacBook Air to the monitor through HDMI, at the same time, the adapter needs to support video and AUDIO.

  • HT5304 Hi Guys, I'm running snow leopard 10.6.3  recently had update which left me with a DMSL launch problem. Rei installed software and now can't connect to Internet  with cable or wifi ! can see network and router,. Help

    Hi Guys, I'm running snow leopard 10.6.3  recently had update which left me with a DMSL launch problem. Re installed software and now can't connect to Internet  with cable or wifi ! can see network and router. Have tried many things and now pulling my hair out !  

    recently had update
    Care to share which update?
    Have tried many things
    Care to share?
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.

  • Can I connect my ipad2 with my aiport express without a pc?

    Can I connect my ipad2 with my aiport express without a pc?

    Yes. However, you would need a PC or Mac to administer the AirPort base station.

  • Can ipod3 connect to print with an HP photosmart4500 all in one ?

    Can ipod3 connect to print with an HP photosmart all in one 4500?

    See:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&task Id=115&prodSeriesId=3575173&prodTypeId=18972&objectID=c02775166

  • How can i connect iphone 5 with izon wireless camera?

    Hi
    How can i connect Iphone 5 with izon wireless camera.I have tryed everything.I try to restart this camera,but iphone can not find this izon.
    What is wrong??????????

    I would check if they have some info here
    http://steminnovation.com/support
    and then I would test it with other phones or a computer to verify that it's not broken

  • Hi,recently bought an apple tv to connect  to my macbook,which is recently been upgraded to os x mountain lion version10.8.4.But i can't connect to that with my apple tv.Anyone can help me ????

    Hi,recently bought an apple tv to connect  to my macbook,which is recently been upgraded to os x mountain lion version10.8.4.But i can't connect to that with my apple tv.Anyone can help me ????

    not all macs support airplay mirror
    http://support.apple.com/kb/ht5404
    installing mtn lion is not! enough if your video card does not support it then you need to live without mirror or take your chances with airparrot

  • Can't connect to itunes with nano

    can't connect to itunes with nano

    Okay, seems that it is a general (and basically nikeplus-) problem today: http://forums.nike.com/thread.jspa?threadID=9767&tstart=0
    Hope, it will be fixed soon!

Maybe you are looking for

  • I am trying to copy the music from my mac to my iphone 5s

    I have purchased the Iphone 5s, so I am assuming i am half way there as the IOS7 is already installed, I cant figure out how to install itunes 11.0 on the iphone so that I can sync my play lists etc every time i plug it in it comes up with a must ins

  • How to create SAVE button in Workbook using BI IP Functionality

    Hi All, I have Real-time Infocube (ZCUBSDID) with me. Planning has been done on the cube using BI-IP (like Aggregation level, filter, planning function and planning sequence are present there). As an Input i have everything in Quality system like I c

  • Customer Revenue Report issue.

    Dear All, I have created one custom Business Object (Customer Data) for count the customer total revenue and his categories also. My logic is working properly . Now i want to create one report too. In report i want my Four field - 1.Customer ID 2.Cus

  • EPMA Windows Services not starting

    Before you all jump on me, I've read almost all of the threads and documentation concerning this issue that are out there. I've checked the databases and they are configured appropriately, I've checked the IPv6 settings and they are ok. this EPMA ins

  • Create a Table Dynamically in WEB Dynpro Java with diferent type of column

    Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click t