December 19, 2001 at 7:15 am
I am trying to setup a SQL server connection with ASP. I have done this many times in Access but am having some problems with SQL. The server is running localy on the web server. I am wanting to put values from the database into drop down boxes for use with other tables. I am new to this so I really need some help.
Thanks
December 19, 2001 at 10:25 am
Dim sConn, objConn, rsTable
Set objConn = Server.CreateObject("ADODB.Connection")
Set rsTable = Server.CreateObject("ADODB.RecordSet")
sConn = "Provider=SQLOLEDB; Data Source=MyServer;" & _
"Initial Catalog=pubs;User ID=steve;Password=stevespwd"
objConn.open sConn
Set rsTable = objConn.Execute("select * from customers"
Steve Jones
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy