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
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
这是连接上了,但是这些提示什么意思啊???怎么改掉?