I installed SQL Server 2017 Express on Windows 10. I couldn't get it to connect using adodb. I am able to connect to it from SQL Server Management Studio, I can query the tables, etc, it works fine, but not from asp.
This is from my asp classic code:
connectionString="Provider=SQLNCLI11;Server=LENOVO\SQLEXPRESS;Database=mydb;Trusted_Connection=yes;"
set cn=server.createobject("adodb.connection")
cn.open (connectionString)
I can't figure out what would be the reason. It connects when I use 'master' instead of 'mydb'. I created a new database with some new tables.
It may not be related, but I don't have a password for windows, this is my personal computer so I didn't want to have login credentials. I'm not sure if that could be the reason. I didn't try creating a user, but if that's what is the issue here I will create one.