the code will be something like this.
Dim spConnectionString
dim adoconnection
dim rs
spConnectionstring = "Driver={SQL Server};Server=Server Name;UID=User Name for SQL SERVER;PWD=Password for SQL SERVER;Database=Database Name;"
set adoconnection =Server.CreateObject("ADODB.Connection"
adoconnection.ConnectionString = spConnectionstring
adoconnection.Open
SQL = " SELECT * from tablename" ''' Open Any table in the DB
rs.Open SQL, adoconnection '' Open a recordset
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.