I want to connect to my (My)SQL database using Classic ASP.
This is my code:
Function GetDatabase() Dim Connection Set Connection = Server.CreateObject("ADODB.Connection") Connection.Open = "Provider=SQLNCLI11;DRIVER={SQL Server};SERVER=127.0.0.1;Database=cms;Uid=root;Pwd=123456789zZ;Trusted_Connection=yes;" If Connection.errors.count = 0 Then Repsonse.Write("OK") End If End Function MyConnection = GetDatabase()
But that doesn't work. It gives me this error:
Microsoft SQL Server Native Client 11.0 error'80004005' Invalid connection string attribute /asp/conn.asp, row 8
Any ideas on how to fix that? I've googled for hours... and I couldn't find any answers, Thanks!