2007-07-22, 10:51 AM
I tried using DatabaseHelperFactory to get the connection string, and then create an OleDbConnection, but it fails because the string has no "Provider=" in it. I don't know what the Provider string should be.
I tried using DatabaseHelperFactory.getDbProviderFactory().CreateConnection() but the connection fails when I call Open() on it, with
SystemException: Data Source cannot be empty. Use :memory: to open an in-memory database
So how exactly do I open the database? I know there are various example code fragments in the forum that refer to SQLite classes directly but that seems a bit hacky -- what's the *right* way to do it?
cheers
Dronny
I tried using DatabaseHelperFactory.getDbProviderFactory().CreateConnection() but the connection fails when I call Open() on it, with
SystemException: Data Source cannot be empty. Use :memory: to open an in-memory database
So how exactly do I open the database? I know there are various example code fragments in the forum that refer to SQLite classes directly but that seems a bit hacky -- what's the *right* way to do it?
cheers
Dronny