[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Login in VB to oracle server through Excel

Posted on 2015-02-04
7
Medium Priority
?
215 Views
Last Modified: 2015-02-08
Experts,

I have a module in VB in Excel which logs me into an Oracle server using an ODBC driver

When we used a separate userid and password, this worked for me


cn.Open "Driver={Microsoft ODBC for Oracle};Server=myServer1;Uid=myname;Pwd=mypassword;"

We now use our network ID and password to get into the tables
When i put my network  IS and password into the the statement above, I get invalid id and password

Does anyone know what the issue is?
0
Comment
Question by:morinia
  • 3
  • 3
6 Comments
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40590977
>>={Microsoft ODBC for Oracle};

First you should not use the Microsoft drivers.  They have been deprecated and only sit on top of the Oracle drivers anyway.

I'm afraid I don't understand what a network ID versus a network IS is.
0
 

Author Comment

by:morinia
ID: 40591034
In the past we were given user IDs s and passwords to  access the Data Warehouse.

Now as an added security to access the Data Warehouse you must use your network ID and password. This is what you use to sign into to system through windows. Prior to this one user could sign in to the company network using their network ID  and login using someone else's Data warehouse credentials.

One anomaly is that our network passwords must have a special character.  Mine has an asterisk in the password.  This may be causing a problem.
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 40591072
Do you have any other tools installed to attempt a database connection?  Sqlplus preferred since this is the simplest tool to try but SQL Developer will also work.

Before debugging the ODBC drivers, make sure the userid and password is correct and can connect you to the database.  Then we'll figure out how to get the ODBC drivers working.

I strongly suggest you use the Oracle drivers.  The Microsoft ones might have 'issues' with the new complex passwords.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:morinia
ID: 40591114
I am actually using oracle drivers in my odbc connection. It is in the VB code where I have tne problem.

I need vb code for ADODB connection.
0
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 40591129
>>I am actually using oracle drivers in my odbc connection

Then what you posted isn't what you are using?

You posted:  Driver={Microsoft ODBC for Oracle};

That is the Microsoft driver.

>>I need vb code for ADODB connection.

There are many sites out there that have connection strings for the various drivers.  Anything I post here wouldn't be any different.

I always seem to end up on:
http://www.connectionstrings.com/oracle/
0
 

Author Closing Comment

by:morinia
ID: 40597306
Thanks,

I was able to connect using just the name of my ODBC Driver.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question