ReportingAnalyst
MIS
Hi,
Since I am getting this error:
Error Type:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'open'
At the line:
<%
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
sSQL = "SELECT CategoryID, CategoryName FROM Categories Where CategoryID = 1 order by CategoryName"
rs.open sSQL, Conn
Response.Write sSQL
%>
I would like to check whether my database connection is working fine or not. How can I do that?
When I comment out the above lines and just leave the connection code, then the ASP page does not err.
THanks.
Since I am getting this error:
Error Type:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'open'
At the line:
<%
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
sSQL = "SELECT CategoryID, CategoryName FROM Categories Where CategoryID = 1 order by CategoryName"
rs.open sSQL, Conn
Response.Write sSQL
%>
I would like to check whether my database connection is working fine or not. How can I do that?
When I comment out the above lines and just leave the connection code, then the ASP page does not err.
THanks.