工作关系,需要在微软的access,excel与delphi的数据库之间绕来绕去,甚是头疼。有什么工具能帮小弟一把?

解决方案 »

  1.   

    用datapump
    先为你的ACCESS库建立一个数据源,然后在用datapump把这个数据源导入到DELPHI自己的那个DBMEMOS里面,这样就可以了
      

  2.   

    >>delphi的数据库
    ???
    什麼, Paradox???SELECT * INTO Customer IN "C:\tmp" "Paradox 7.x;" FROM CUSTOMER看<<delphi7 從入門到精通>>
    中的
    Importing and Exporting
    The Jet engine is particularly adept at importing and exporting data. The process of exporting data is the same for each export format and consists of executing a SELECT statement with a special syntax. Let's begin with an example of exporting data from the Access version of the DBDemos database back to a Paradox table. You will need an active ADOConnection, called ADOConnection1 in the JetImportExport example, which uses the Jet engine to open the database. The following code exports the Customer table to a Paradox Customer.db file: SELECT * INTO Customer IN "C:\tmp" "Paradox 7.x;" FROM CUSTOMER
    Let's look at the pieces of this SELECT statement. The INTO clause specifies the new table that will be created by the SELECT statement; this table must not already exist. The IN clause specifies the database to which the new table is added; in Paradox, this is a directory that already exists. The clause immediately following the database is the name of the IISAM driver to be used to perform the export. You must include the trailing semicolon at the end of the driver name. The FROM clause is a regular part of any SELECT statement. In the sample program, the operation is executed through the ADOConnection component and uses the program's folder instead of a fixed one: ADOConnection1.Execute ('SELECT * INTO Customer IN "' +
      CurrentFolder + '" "Paradox 7.x;" FROM CUSTOMER');
    All export statements follow these same basic clauses, although IISAM drivers have differing interpretations of what a database is. Here, you export the same data to Excel:ADOConnection1.Execute ('SELECT * INTO Customer IN "' +
      CurrentFolder + 'dbdemos.xls" "Excel 8.0;" FROM CUSTOMER');A new Excel file called dbdemos.xls is created in the application's current directory. A workbook called Customer is added, containing all the data from the Customer table in dbdemos.mdb.This last example exports the same data to an HTML file:ADOConnection1.Execute ('SELECT * INTO [Customer.htm] IN "' +
      CurrentFolder + '" "HTML Export;" FROM CUSTOMER');
      

  3.   

    你导入后的文件在G:\Program Files\Common Files\Borland Shared\data下
    当然,我系统装在G盘,你自己的就看着办吧