What istelling you?Qt Code:
To copy to clipboard, switch view to plain text mode
What istelling you?Qt Code:
To copy to clipboard, switch view to plain text mode
Thank you for your reply. The lastError().test() prints out as follow.
"[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). QODBC3: Unable to connect"
Is any possible it still uses default 1433 port instead of specified port 5555?
Check that with QSqlDatabase::port(). Because in your example code you do not set the port.
QSqlDatabase.port() return -1.
Last edited by helen; 5th December 2011 at 20:22.
Bookmarks