我想用WinCCOLEDB读取报警记录 程序如图 结果eof=1 也就是没有读到数据 请问哪里错了啊 已经安装了ConnectivityPack
Set oConn=CreateObject("ADODB.Connection")
Set oRs=CreateObject("ADODB.RecordSet")
Set oCom=CreateObject("ADODB.Command")
(, 下载次数: 0) 上传 点击文件名下载附件 strConn="Provider=WinCCOLEDBProvider.1;Catalog=CC_NewFlavo_16_03_08_10_36_24R;Data Source=.\WINCC"oConn.open strConnstrSQL = "ALARMVIEW:Select * FROM AlgViewCHT"oRs.Open strSQL,oConn,1,1MsgBOX oRs.eof ---看看标准查询是怎么写的: 欢迎光临 工控编程吧 (https://www.gkbc8.com/) Powered by Discuz! X3.4
strConn="Provider=WinCCOLEDBProvider.1;Catalog=CC_NewFlavo_16_03_08_10_36_24R;Data Source=.\WINCC"
oConn.open strConn
strSQL = "ALARMVIEW:Select * FROM AlgViewCHT"
oRs.Open strSQL,oConn,1,1
MsgBOX oRs.eof