1. ODBC

Trying to set up an odbc connection to an sqlite database. Have no problem doing so with a dsn and openConnectionODBC, but would like to use openDriverConnectionODBC with a connection string to simplify distribution and installation of software. Can get openDriverConnectionODBC with no connection string and prompting for the DSN - but don't seem to be able to get the connection string right - currently using :-

k = openDriverConnectionODBC("Driver=SQLite3 ODBC Driver;Database=c:/users/roger/euphoriaodbc/ClubBooks.db3;", get_handle(mainPanel), SQL_DRIVER_NOPROMPT)

Have tried all sorts of variations (such as putting in empty username and password fields in the connection string - I don't have a username or password).

Could someone please give me an example or otherwise show me where I am going wrong.

Thanks

RogerL

new topic     » topic index » view message » categorize

2. Re: ODBC

Just to make sure the file path isn't a problem, try doing a standard Euphoria open on the file, using the exact same path as you have listed, and make sure you don't get an error. Also, I noticed you have Database=.... For SQLLite, it should be Data Source=... Connection String examples

new topic     » goto parent     » topic index » view message » categorize

3. Re: ODBC

Thanks, I'll give that a go! RogerL

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu