I'm trying to connect an asp page to a sql server 2005 database. The asp page is on an IIS server, on two different servers. This is not an express edition.
I've been able to connect to the database from a php page on an apache2 server, but now I need the IIS to connect, and can't get it to work. When I open the page, I don't get any errors, or anything to display, just a blank page.
Also, since I don't know ASP, I don't know if its the code, or the connection that isn't working. There is data in the database, I've taken the php page that works, and using that to try and make an asp page.
Set Conn = Server.CreateObject("ADODB.Connection")
Set Rs = Server.CreateObject("ADODB.RecordSet")
strCon="Provider=SQLOLEDB.1;Data Source=" & mServer & ";Initial Catalog=" & _
dbName & ";User ID=" & UserID_db & ";Password=" & PassWD & ";"
sSQL = "SELECT * FROM myNorthwest_Links1 ORDER BY links_ID ASC"
Set Rs = Conn.Execute(sSQL)
Do While NOT Rs.EOF
Set Rs = Nothing
Set Conn = Nothing