Hi there,
I am creating a routine to update a database. However, I want the routine to check if the database exists first. If the database exists, it will need to create it and if the database does not exist, only to update its content. My problem is that I do not know how to test before hand if the database already exists. I would be grateful to any suggestion.
Cheers,
Fede
Check if a database exists
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Check if a database exists
I think the only thing you can do is use the @fileexist function to check for existence of the database file.
Re: Check if a database exists
Works like a charm. Many thanks :)
Who is online
Users browsing this forum: No registered users and 2 guests
