求大神解救
qt吧
全部回复
仅看楼主
level 3
代码如下:
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent){
QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
db.setDatabaseName("driver={sql server};server=SKY-20161105GUG;database=db1;uid=sa;pwd=123456"); if(db.open())
{qDebug()<<"open";}
db.close();}
运行结果:
[LspTrace]process path is E:\qianrushi\build-SQL1-Desktop_Qt_5_5_1_MinGW_32bit-Debug\debug\SQL1.exe
[LspTrace]ReadAccConfig returns false!
[LspTrace]FindMatchingProvider: inInfo is one of the
LSP
s entry.
[LspTrace]WSPStartup end: 0, protocol=17
[LspTrace]FindMatchingProvider: inInfo is one of the LSPs entry.
[LspTrace]WSPStartup end: 0, protocol=6
open
这是连接上了,但是这些提示什么意思啊???怎么改掉?
2017年04月26日 08点04分 1
level 1
你解决了没有,我也出现这个问题了
2017年10月16日 12点10分 2
1