Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

Moved to Amazon server trying to connect to database

$
0
0

Moved to a new server and trying to connect to it on an ASP page.  Can anyone tell me what I have that is wrong here.  I renamed the server, database, and password. 

<%

               Dim myYear, mysql

               myYear = Request("Year")

               'Set location to database

               dim Conn, sqlstate

               sqlState = "myserver.cmhizh7ejicx.us-west-2.rds.amazonaws.com;Database=Mydb;User ID=admin;Password=my password"

    set Conn = Server.CreateObject("MSOLEDBSQL.Connection")

    Conn.open sqlstate

               Dim cnCon, rstemp


Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>