PDA

View Full Version : Qt connect SqlServer with ODBC



Connailo
3rd February 2015, 08:13
Hello everyone:
At first I connect a database which name is "testdb" with ODBC, then , I want to create a new database and connect it ,create tables or something,how can I ?
the error is :
QSqlDatabasePrivate::database: unable to open database: "[Microsoft][ODBC 驱动程序管理器] 未发现数据源名称 并且未指定默认驱 动程序 QODBC3: Unable to connect"

jefftee
3rd February 2015, 08:53
Have you configured our ODBC DSN correctly and can you connect/use this from another application like Excel? If so, post your related code using
tags please.