VoiceGuide IVR Software Main Page
Jump to content

Ivr Solution

Recommended Posts

I Began to Implement IVR Solution

 

And Creating vbScript

like

Const adCmdStoreProc=4

Set Cmd= CreateObject("ADODB.Command")

set cn = CreateObject("ADODB.Connection")

set rs = CreateObject("ADODB.Recordset")

cn.Open "Provider=MSDAORA;Data Source=;User Id=;Password=;"

with Cmd

.ActiveConnection=cn

.CommandType=adCmdStoreProc

.CommandText="SMS.SP_SMS_BillAmount"

.Parameters.Append cmd.CreateParameter("P_CustNo", adInteger, 1, 50, "12220120")

.Parameters.Append cmd.CreateParameter ("P_BillAmount", adVarChar, 2)

.Parameters.Append cmd.CreateParameter ("P_LastDate", adVarChar, 2)

.Execute ,,128

End With

if Cmd.Parameters("P_BillAmount").Value <> 0 then

dcAmount=Cmd.Parameters("P_BillAmount").Value

else

dcAmount=0

end if

 

 

from the begining i recieved that error

Microsoft VBScript runtime error: ActiveX component can't create object: 'ADODB.Command'

and i want to use stored procedure

 

PLZ Any one Can Help ME???????????

Share this post


Link to post

Please If any One have Solution Please Posted It

when define

Set Cmd= CreateObject("ADODB.Command")

recieve error

ActiveX component can't create object: 'ADODB.Command'

 

 

i have windows xp sp2

Because i searched for solution but did not reache

thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×