I am not new to asp but very new to asp.net.
Looking at this, how can I connect to a sql server db with an asp.net connection string.
Here is what I have so far.
This connection works with classic asp but I am having problem converting it to asp.net connection to sql server db.
Thanks in advance.
<%
Dim objConn,strConnString
Set objConn=Server.CreateObject("ADODB.CONNECTION"
objConn.Open="dsn=qqwwqq"
'objConn.Open "strConnString"
Dim RS
Set RS=Server.CreateObject("ADODB.RECORDSET"
Dim strSQL
strSQL ="SELECT * FROM tbl_events ORDER BY eventID "
RS.open strSQL,objConn
'response.write strSQL
'response.end
%>
Looking at this, how can I connect to a sql server db with an asp.net connection string.
Here is what I have so far.
This connection works with classic asp but I am having problem converting it to asp.net connection to sql server db.
Thanks in advance.
<%
Dim objConn,strConnString
Set objConn=Server.CreateObject("ADODB.CONNECTION"
objConn.Open="dsn=qqwwqq"
'objConn.Open "strConnString"
Dim RS
Set RS=Server.CreateObject("ADODB.RECORDSET"
Dim strSQL
strSQL ="SELECT * FROM tbl_events ORDER BY eventID "
RS.open strSQL,objConn
'response.write strSQL
'response.end
%>