SQL server uses other than default 1433 port (e.g. 5555), system DSN created using the port 5555 and tested completed successfully.
However, QSqlDatabase failed to open database.
The code snippets:
Qt Code:
db->setDatabaseName("test"); db->setUserName(userName); db->setPassword(passWord); if ( db->open() ){ ///Database open successfully..... } else { ///Database open failed }To copy to clipboard, switch view to plain text mode
It's greatly appreciated for any help to solve this problem.
Bookmarks