本帖最后由 nuoyan 于 2012-3-3 00:28 编辑 $Serverip = IniRead("Member.ini", "SQLServer", "IP","")
$sqlpwd = IniRead("Member.ini", "SQLServer", "PWD","")
$conn = ObjCreate("ADODB.Connection")
$RS = ObjCreate("ADODB.Recordset")
$conn.Open("driver={SQL Server};server=" & $Serverip & ";uid=netcafe;pwd=" & $sqlpwd
& ";database=local")
$RS.ActiveConnection = $conn
$RS.open ("SELECT max(ID) FROM mem_localmemberbaseinfo")
MsgBox(0, "结果", 这里显示上面SQL语句查询的结果,问请该怎么写? )
$RS.close
MsgBox(0, "结果", 这里显示上面SQL语句查询的结果,问请该怎么写? ) |