[Qt-interest] Connection string for QODBC cannot use "Data Source"?
Jonathan Wong
jhannwong at gmail.com
Thu Jul 9 09:44:19 CEST 2009
Using QODBC like this...
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
db.setDatabaseName(connectionString);
Why does it fail when I use a connection string containing the words "Data Source"? Why does it
work when I replace that with "DSN"?
Provider=MSDASQL.1;Persist Security Info=True;Data Source=MyDataSourceName
Provider=MSDASQL.1;Persist Security Info=True;DSN=MyDataSourceName
More information about the Qt-interest-old
mailing list