Hi,
I'm trying to use NotORM together with ODBC. Unfortuntaly I'm not able to provide the database-name within the ODBC-driver in Windows when creating a data source.
Thus doing it the "classic" way, my database connection and query looks like:
$conn = odbc_connect("MY_DATASOURCE_NAME","root","root_psw", SQL_CUR_USE_ODBC);
$sql = "SELECT * FROM MY_DATABASE.SYSTEM_USERS WHERE ACTIVE = 1";
To achieve the same, I was looking like something similiar in NotORM. I'm able to get the connection:
$pdo = new PDO('odbc:MY_DATASOURCE_NAME, 'root', 'root_psw');
$db = new NotORM($pdo);
But how to proceed to give the information on the database to do the select?
$db->MY_DATABASE()->SYSTEM_USERS() is not working.
What's the right function to provide the database?
Thanks a lot!
Sebastian