set cn = server.CreateObject("ADODB.Connection"
set cmd = server.CreateObject("ADODB.Command"
cn.Open Application("Connection"
set cmd.ActiveConnection = cn
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "Sp_ContactList"
cmd.Parameters.Refresh
cmd.Parameters(1) = Session("LoginID"
cmd.Parameters(2) = strContactName
cmd.Parameters(3) = strContactEmail
cmd.Execute lngRows, , adExecuteNoRecords
lngRetValue = cmd.Parameters(0)
'error handling......
if isempty(lngRetValue) or lngRetValue <> 0 then 'errors occured
if isObject(cn.Errors) and cn.Errors.Count > 0 then ' errors from db server
strErrMsg = cn.Errors(cn.Errors.Count - 1).Description
else ' other errors
strErrMsg = Err.Description
end if
end if
Getting error in the below line.
cmd.CommandType = adCmdStoredProc
the error is given below,
Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/HitDev/SaveDetails.asp, line 51
Could u please let me know, what kind of error is this?...
I have no idea. I am just calling a stord procedure from the asp page passing 3 parameters.
Thanks,
laks
set cmd = server.CreateObject("ADODB.Command"
cn.Open Application("Connection"
set cmd.ActiveConnection = cn
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "Sp_ContactList"
cmd.Parameters.Refresh
cmd.Parameters(1) = Session("LoginID"
cmd.Parameters(2) = strContactName
cmd.Parameters(3) = strContactEmail
cmd.Execute lngRows, , adExecuteNoRecords
lngRetValue = cmd.Parameters(0)
'error handling......
if isempty(lngRetValue) or lngRetValue <> 0 then 'errors occured
if isObject(cn.Errors) and cn.Errors.Count > 0 then ' errors from db server
strErrMsg = cn.Errors(cn.Errors.Count - 1).Description
else ' other errors
strErrMsg = Err.Description
end if
end if
Getting error in the below line.
cmd.CommandType = adCmdStoredProc
the error is given below,
Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/HitDev/SaveDetails.asp, line 51
Could u please let me know, what kind of error is this?...
I have no idea. I am just calling a stord procedure from the asp page passing 3 parameters.
Thanks,
laks