INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Incorrect data-type with Access pass-through make-table query

Incorrect data-type with Access pass-through make-table query

(OP)
MS Access 2003
Oracle 10g
Windows 7

I am basically running data updates every night into local MS Access tables from source data tables in Oracle.

This worked fine, until some change on the network which produced a timeout error for all append queries that used pass-through queries.

In order to work around this, I decided to first drop all tables and then run make table queries (SELECT INTO) with a pass-through query to the Oracle tables, which somehow avoided the timeouts.

Problem now is, some of the resultant Access tables do not have the same base data types as the Oracle tables. E.g. integer fields are created as text.

Is there some way of forcing the resultant data-types?
Is this maybe an Oracle driver problem?


Thnx,

Darrylle

Never argue with an idiot, he'll bring you down to his level - then beat you with experience.

RE: Incorrect data-type with Access pass-through make-table query

Instead of "drop all tables" try "truncate all tables".
You just dump/delete all data from the tables, but you keep the tables' structure so you don't have to re-create them.

But it is still very bad idea, IMO

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

RE: Incorrect data-type with Access pass-through make-table query

(OP)
Andy,

I don't think that SELECT INTO would work then (and APPENDing has a common timeout issue with large amounts of data across a network).

I have solved it though - used a different ODBC connection string, which now replicates data types from the source table.


Thanks,

Darrylle

Never argue with an idiot, he'll bring you down to his level - then beat you with experience.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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!

Resources

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