We are migrating to Azure and have one app that is still in classic ASP. We have migrated the database that it needs to communicate with to SQL database in Azure.
Looking for guidance or examples on how to get classic ASP to connect with SQL database.
Here's what we have now.
ConnString = "DRIVER=SQL Server Native Client 10.0;Server=servername.database.windows.net,1433;Database=azuredb;UID=user@serve rname;PWD=password;Encrypt=yes;TrustServerCertificate=no;"
Set Conn = CreateObject("ADODB.Connection")
Conn.Open ConnString
set rs=Server.CreateObject("ADODB.recordset")
SQL = "SELECT * from table"
rs.Open( SQL )
Connection String (for readability)
SQL Server Native Client 10.0;Server=servername.database.windows.net,1433; Database=azuredb;UID=user@serve rname;PWD=password;Encrypt=yes; TrustServerCertificate=no;
With the above connection we get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
We are running this in a VM running Server2008 R2
SQL Server Native Client 10.0
installed on your VM, it's failing at the first hurdle nothing to do with Azure. – user692942