jenmat
asked on
Execute stored procedure in ActiveX script (vb script) in a SQL job
Hi,
is this the right way to run a stored procedure from ActiveX script (vb script) in a SQL job?
----------------------
Set cmdSp = CreateObject("ADODB.Comman d")
cmdSp.ActiveConnection = "Provider=SQLOLEDB;Server= xxx.xxx.xx x.xxx;data base=dbPas setData;ne twork=DBMS SOCN;uid=P assData;pw d=jH783Rew "
cmdSp.CommandText = "Dp_Adm_Select_MobileInfoT oXml"
cmdSp.CommandType = 4
CmdSp.Parameters.Append CmdSp.CreateParameter("@C1 ID", 3, 1,, 461)
CmdSp.Parameters.Append CmdSp.CreateParameter("@LI D", 3, 1,, 1)
set RS = CmdSp.Execute
dim arrGuideJava: arrGuideJava = RS.GetRows()
RS.Close
set RS = nothing
set CmdSp = nothing
---------------------
/ jenmat
is this the right way to run a stored procedure from ActiveX script (vb script) in a SQL job?
----------------------
Set cmdSp = CreateObject("ADODB.Comman
cmdSp.ActiveConnection = "Provider=SQLOLEDB;Server=
cmdSp.CommandText = "Dp_Adm_Select_MobileInfoT
cmdSp.CommandType = 4
CmdSp.Parameters.Append CmdSp.CreateParameter("@C1
CmdSp.Parameters.Append CmdSp.CreateParameter("@LI
set RS = CmdSp.Execute
dim arrGuideJava: arrGuideJava = RS.GetRows()
RS.Close
set RS = nothing
set CmdSp = nothing
---------------------
/ jenmat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
adoConn.connectionstring = "Provider=SQLOLEDB;Server=
adoConn.open
Set cmdSp = CreateObject("ADODB.Comman
set cmdSp.ActiveConnection = adoConn