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 Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- 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.
Follow us on Twitter @IHSEViews
Re: Check if a database exists
Works like a charm. Many thanks
Who is online
Users browsing this forum: No registered users and 38 guests