Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I also believe that we all can contribute to each other's growth by sharing knowlege and experiences. I would love to take my skills and help people around the world solve problems..."

Geography

Where in the world do Tek-Tips members come from?
sxschech (TechnicalUser)
23 Jul 12 12:49
Up until last week, a union query that exports data to excel was working fine. I was prompted to change my log-in password (not database password, but the password used for signing onto the windows network). After that, when I opened my access database (2003 format running under 2010) I received an ODBC Connection Failed. I used the Link Table manager to relink, I went into the SQL pass-thru queries and relinked those under the properties window (the password to the Oracle database is still the original password as this is not synced with windows password and I haven't contacted the dbas about how to change my oracle password to match my windows password). I manually opened each linked table and pass-thru to make sure that they would open with data and each opened fine without error. For the query that is giving the error, I opened in design view and worked my way backwards (looked at the FROM and then opened that. The query in the FROM opens fine. From what I can tell, none of the items are coming from links or pass-thrus. The data that come from linked items are saved in local tables via append queries before being used in subsequent queries. Here is the interesting part. The query with the error is a UNION query. If I copy and paste the portion before the UNION, it runs fine, likewise, with the portion after the UNION. I then copied and pasted both into separate queries and saved them, they run fine. After that, I did a union on the two new queries and received the ODBC Connection Failed. I'm at a loss to figure out why this would be or how to fix it. I suppose in the meantime I'll have to add a layer of complexity by having to export export the queries individually and create a macro to put them together as the union query did, but after the fact.
SkipVought (Programmer)
23 Jul 12 13:06
hi,

I work for a major aero-space manufacturer and do a lot of ODBC access to Oracle & DB2 databases.

Our IT automatcally synchronizes our network password with a number of systems, including Oracle but not BD2. So every 60 days, I must change my ODBC pasword in the DB2 driver configuration.

I would conclude that if my Oracle password were not automatically changed, that I would have a problem, since there is no password change capability in the OraHome as there is in the DB2 driver configuration.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

sxschech (TechnicalUser)
23 Jul 12 13:31
If the queries and tables being used are not running against links, would it matter whether passwords are synced since Oracle is not involved in the underlying data once it has been saved to a local table via make table or append query?

Anyway, as a workaround, I created a delete query, and two append queries to take the place of the union query and that seems to get me the data without the ODBC error. Then I changed the final query used to export the data to excel to point to this new table instead of the existing query.
sxschech (TechnicalUser)
23 Jul 12 14:02
Hi Skip,

Although the workaround solved one problem, other problems cropped up. Based on your recommendation, I contacted the dbas and requested them to help me sync the passwords. Now all is fine with being able to use the original Union query and export results.
SkipVought (Programmer)
23 Jul 12 14:06
smile

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close