- Mar 1, 2000
- 30,890
- 5,001
- 126
Cna somebody provide a simple connection string/query example to use in an .asp webpage that will display the results of the query?
I just need some "jumping off point" of how to get this started so I can start to play with a working example, and I'm struggling with that.
I THINK I have a working connection string in the following:
<%
dim con, Rs
set con=server.CreateObject("adodb.connection")
con.Open "Provider=sqloledb;SERVER=SQL;DATABASE=CLS;UID=<Uid>;PWD=<UidPass>;"
Sql = SELECT FILENO FROM MASTER WHERE FORW_NO =1234
Dim Adapter as SqlDataAdapter = New SqlDataAdapter(SQL,cn)
Rs = New DataSet
Adapter.fill(rs,master)
Cn.close()
%>
Any help would be appreciated.
Thanks in advance.
I just need some "jumping off point" of how to get this started so I can start to play with a working example, and I'm struggling with that.
I THINK I have a working connection string in the following:
<%
dim con, Rs
set con=server.CreateObject("adodb.connection")
con.Open "Provider=sqloledb;SERVER=SQL;DATABASE=CLS;UID=<Uid>;PWD=<UidPass>;"
Sql = SELECT FILENO FROM MASTER WHERE FORW_NO =1234
Dim Adapter as SqlDataAdapter = New SqlDataAdapter(SQL,cn)
Rs = New DataSet
Adapter.fill(rs,master)
Cn.close()
%>
Any help would be appreciated.
Thanks in advance.