<html>
<head>
<title> database connectivity </title>
</head>
<body>
<H1> DATABASE CONNECTIVITY </H1>
<%
dim constr
constr= "provider=sqloledb;data source=1.234.5.678,1234;initial catalog = abcd; User Id=abcd; password=abcd"
set conobj = server.createobject("ADODB.Connection")
conobj.connectionstring = constr
conobj.open
set comobj = Server.CreateObject("ADODB.Command")
comobj.CommandText = "test2"
comobj.CommandType = adCmdTable
set rs1 = comobj.Execute
%>
</body>
</html>
i am trying to show the recordset with the code..
the error i get is :
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
line 24
Where am i going wrong ?