What driver to use to connect to MS SQL Server in Qt?
QODBC!
Example:
QSqlDatabase db = QSqlDatabase::addDatabase( "QODBC" ); db.setDatabaseName( "DRIVER={SQL Native Client};Server=my_pc_name;Database=my_db_name;Trusted_Connection=yes;" );
Source: https://ru.stackoverflow.com/questions/59782/More articles:Error “PHP Notice: Undefined offset: 1 in ...”Salute rectangles with free text insideLinux Mint. power usage“Invalid indirection” error indicating array indicesExercises on the topic from Schildt “More on methods and classes”Grades by subjectHow to write x ^ n in the program?How to add numbers in two tables?Average UNIX Access TimeWhere is the error in the code?All Articles