Re: Compacting an Access database with DAO
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Tue, 8 Jan 2008 14:53:43 -0600
"John L." <JohnL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7E349F96-08FD-41AD-A3E0-6F1410983BB3@xxxxxxxxxxxxxxxx
We have a few databases with linked tables to SQL Servers and when weattempt
to compact these databases by programmatically, it fails due to SQL ServerAccess
login information. I understand that you cannot use Microsoft Access to
compact and repair a SQL Server database, but we do have some native
tables + forms/reports etc within the database; which we would like to
compact and repair. Is there a work around for this?
Thank you for your help.
I'm with Bob here, as your question is a bit vague.
To compact a database with DAO you must have access to the mdb file, and all
users must have released it. (no one logged in). ie, you can't compact a
database through a linked table.
[If using any mdb previous to Jet4, you have to do it in two steps, Repair
and Compact. With Jet4 you only need to call Compact.]
RepairDatabase "C:\myData1.mdb"
CompactDatabase "C:\myData1.mdb", App.Path & "myDataNewName.mdb",
<optional_locale>, <optional_options>, <optional_password>
-ralph
.
- Prev by Date: Re: ConnectionWrite WrapperWriteOOB Error - Urgent
- Next by Date: Re: ConnectionWrite WrapperWriteOOB Error - Urgent
- Previous by thread: Re: Compacting an Access database with DAO
- Next by thread: Re: Access project image files
- Index(es):
Relevant Pages
|
|