English 中文(简体)
Access Database Pass Through Query?
原标题:

I have linked Sybase database table with Access 2003. I only have read access to the Sybase database and created a pass-through query in access. Now what I need is, I need to create a temp table in Access with the data output of pass-through query.

问题回答

If you can do a "SELECT" on that table, then you can do a "SELECT INTO" with that table.

For instance:

SELECT *
INTO myTempTable
FROM mySybaseTable

Which will copy all records from your Sybase table to your temp table.

Another alternative is DoCmd.TransferDatabase to import the table directly, using the appropriate ODBC connect string. I don t know if it s more efficient than the INSERT INTO, but I do know that INSERT INTO can get the data types badly wrong and won t import your indexes, whereas TransferDatabase is likely to do better (though likely also not perfectly).





相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签