登录
首页 PLC论坛 西门子SIEMENS
回帖 发帖
正文

主题:请指点

点击:824 回复:1

如下程序,VB中调试通过,但是在WINCC的VBS编辑器中不起作用,请指点
Dim objConnection
Dim strConnectionString
Dim strSQL
Dim objCommand
strConnectionString = "Provider=OraOLEDB.Oracle.1;Password=dc;Persist Security Info=True;User ID=dc;Data Source=sddc"
strSQL = "delete dc1"
Set objConnection = CreateObject("ADODB.Connection")
objConnection.ConnectionString = strConnectionString
objConnection.Open
Set objRecordset = CreateObject("ADODB.Recordset")
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = strSQL
Set objRecordset = objCommand.Execute
objConnection.Close
06-07-15 06:45
1楼
该帖内容不符合相关规定!
06-07-15 11:42

工控新闻

更多新闻资讯