Community
Showing results for 
Search instead for 
Do you mean 
Reply

Testing for Demo DB

Tuned Listener
Posts: 23
Country: UK

Testing for Demo DB

Hi there,

I have some code that is trying to drop a settings file into the database folder after configuration.

If the user selects the ActDemoDB there doesn't appear to be a database folder so the settings code fails.

Is there an easy way to detect whether an ACT DB is the demo file so that I can notify the user before they waste their time doing the configuration?

Thanks

Russell
Nickel Super Contributor
Posts: 441
Country: UK

Re: Testing for Demo DB

You could check the CurrentDatabase property for the database name and query the string to see if it contains "Act" and "Demo".

 

Tom