Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Darrylles

Programmer
Feb 7, 2002
1,758
GB
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.
 
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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top