本帖最后由 f4李文杨 于 2018-7-31 01:19 编辑
$conn = ObjCreate("ADODB.Connection")
$RS = ObjCreate("ADODB.Recordset")
$conn.Open("driver={SQL Server};server=127.0.0.1,1433;uid=sa;pwd=fff;database=QPAccountsDB")
$RS.ActiveConnection = $conn
$RS.open("select StatusName,StatusValue,StatusString,StatusTip,StatusDescription from SystemStatusInfo")
$update = 'UPDATE SystemStatusInfo SET StatusValue="0",StatusString="1", StatusTip="键值:0-开启,1-关闭",StatusDescription="键值:0-开启,1-关闭" ,WHERE StatusName="EnjoinLogon"'
$conn.Execute($update)
$conn.close
以上的代码那里有错吗? |