|
|
#6
东海一鱼2009-08-29 11:39
我晕,你学得也太死了吧。
对文件型数据库来说,根据给出的关键字,建立数据源本身就是建立文件。
Creates a database file. Has the following format: CREATE_DB=<path_name><optional_sort-order><optional_ENCRYPT keyword>, where the path name is the full path to a Microsoft Access database. An error will be returned if the path name specifies an existing database. The sort order will be as set up in the New Database dialog box displayed when the Create button is pressed in the Microsoft Access Setup dialog box. If no sort order is specified, General is used.
When using the CREATE_DB keyword in the same statement with a DSN keyword, this driver ignores the DSN keyword. Therefore, creating a database and specifying a DSN is a two-step process.When using the CREATE_DB keyword, if the pathname of the Microsoft Access database to be created contains one or more spaces, then the entire pathname must be enclosed by double quotation marks, as shown in the following examples:
"C:\PROGRAM FILES\COMMON FILES\
MyAccess.mdb"
"C:\PROGRAM FILES\Access2.mdb"
CREATE_DB=C:\TEMP\test.mdb (no quotation marks needed)
|