I have the below code but i can't display the recordset, maybe i'm doing it way to complicated!?
Code:
<% DIM strDataSourceName, objConn
Set objConn = Server.CreateObject("ADODB.Connection")
strDataSourceName="Provider=SQLOLEDB;Data Source=localhost,1433;Network Library=DBMSSOCN;Initial Catalog=testdb;User ID=testuser;Password=12345678;"
objConn.connectionstring = strDataSourceName
objConn.Open
DIM mySQL
mySQL = "SELECT message FROM message_tbl WHERE id=1"
DIM objRS
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open mySQL, objConn %>
<html>
<head>
<title>ASP Test Page</title>
</head>
<body>
<% response.write() %>
</body>
</html>
<% objRS.Close
objConn.Close %>
Comment