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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting a local database from the command line

Status
Not open for further replies.

djhawthorn

Technical User
Mar 4, 2002
641
AU
On Pervasive.SQL 2000i SP4, is there a way to delete a local database silently/without user intervention? Any tool or utility out there that can do this?

Note: I just want the database name deleted - not the system files.

Alternatively, is there a way to stop Pervasive from using a UNC path for the database location? (Rather, get it to use a relative/drive mapping path)

We have a problem where a user goes from one location to another, each with their own seperate databases, but the database name is exactly the same in every location. So Pervasive tries to go off to a remote server as opposed to the local server - this making the program extremely slow to do anything.

At the moment, we have to manually go in and delete the database name to make it fast again.

[auto] MCSE NT4/W2K
 
You could probably write (or have written) a tool that does this using DTI/DTO but I'm not aware of a delete database command line tool.
As far as what path is used, it's based on the database name. If it stores a relative path, that's what's used. Note that if it is a relative path it will be based on the base location and the engine location (can't have a relative path that points to a different server).
Now, is this Database Name defined locally? If not, check the SAT Entries on the local client.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top