Hello,
Can some one tell me where I am going wrong. I am trying to execute a
stored procedure using vbscript. I can execute them in vb6, but cant get it
to work using active server pages.
The problem is : Each time i try to create a command object I get the
error - Activex cant create object ADODB.command. When I create an
ADODB.recordset the compiler passes this.
i.e
****************************************************************************
********
PAGE1. ASP
****************************************************************************
********
<!-- METADATA TYPE="typelib" FILE="C:\Program Files\Common
Files\System\ado\msado15.dll" -->
<!-- #INCLUDE FILE="PAGE2.asp" -->
<SCRIPT LANGUAGE = VBSCRIPT>
sub cmdButton1_onclick
test()
end sub
</SCRIPT>
<HTML>
<%
Response.write "<INPUT TYPE = button Name = cmdButton1 Value = Add>"
%>
</HTML>
****************************************************************************
********
PAGE2.ASP
****************************************************************************
********
<!-- METADATA TYPE="typelib"
FILE="C:\Program Files\Common
Files\System\ado\msado15.dll" -->
<SCRIPT LANGUAGE="VBSCRIPT" >
Function test()
dim objCommand
Dim adoStreamQuery
'Pass this ok
Set obJRs = CreateObject("ADODB.Recordset")
'Fail - Error: Activex component can not create object
ADODB.command
Set objCommand = CreateObject("ADODB.Command")
end function
</script>
Thanks...