Connect to a .mdb database
Posted: Sat Jul 12, 2014 10:08 am
Hi all, here I am again with a a couple of questions.
I'm using a ODBC connection to a access db (.mdb).
this solution (the odbc conn) is it the only way to do the connection? or there are other ways to avoid the use of odbc data source?
the problem is that if installing my app on other computer, without create the odbc data source, the connection fails, of course.
if the ODBC connection it's the only way, there is the possibility to do it by code into a script?
I found this piece of code
at this link
http://revolution.screenstepslive.com/s ... ion-object
but it's non very clear for me.... I miss something
franco
I'm using a ODBC connection to a access db (.mdb).
this solution (the odbc conn) is it the only way to do the connection? or there are other ways to avoid the use of odbc data source?
the problem is that if installing my app on other computer, without create the odbc data source, the connection fails, of course.
if the ODBC connection it's the only way, there is the possibility to do it by code into a script?
I found this piece of code
Code: Select all
## ODBC Example
-- Note: When calling dbconn_createObject you pass in 3 parameters
-- The 2nd is "odbc" and the 3rd is the type of database you are
-- connection too
-- dbconn_createObject "development", "odbc", "sql server"
dbconn_set "dsn", "sqlserver_odbc"
dbconn_set "username", "odbc_user"
dbconn_set "password", empty
http://revolution.screenstepslive.com/s ... ion-object
but it's non very clear for me.... I miss something
franco