Hi,
I have another question:
I have a connection to a SQL Server using ODBC:
m_qBD.setHostName("localhost");
m_qBD.setDatabaseName("SQLServerODBC"); //Name of the ODBC driver that I have created
m_qBD.setUserName("user");
m_qBD.setPassword("passwd");
m_qBD = QSqlDatabase::addDatabase("QODBC","database1");
m_qBD.setHostName("localhost");
m_qBD.setDatabaseName("SQLServerODBC"); //Name of the ODBC driver that I have created
m_qBD.setUserName("user");
m_qBD.setPassword("passwd");
To copy to clipboard, switch view to plain text mode
The DBServer have 2 Databases ("db1" and "db2").
The "db1" have 2 tables "table1" and "table2".
The "table1" has a filed called "field1".
How I get the information of the "field1"?
My problem is that the connection to the server is done, but don't how to open the Database "db1".
Thanks,
Bookmarks