Can anyone explain why this works
Conn.Open "Provider=SQLOLEDB;Server=tcp:myazurename.database.windows.net;Database=People;Uid=MyUid;Pwd=MyPwd;Encrypt=yes;"
and this doesn't
Conn.Open "Provider=SQLOLEDB;Server=(localdb)\v11.0;Database=People;Uid=MyUid;Pwd=MyPwd;Encrypt=yes;"
I copied my live azure database locally for dev work in Classic ASP and the error message is
Microsoft OLE DB Provider for SQL Server error '80004005'
[DBNETLIB][ConnectionOpen (Connect()).] SQL Server does not exist or access denied.
Azure SQL server version: 11.0.9231 Local SQL server version: 11.0.2318
I can connect using the same details on SQL Server Management Studio so its not a user permissions thing...
Under Security for the server, the user has public server role, the user mapping for the 'People' database is everything except db_denydatareader and db_denydatawriter.
I have also tried (localdb)\\v11.0 which doesn't make a difference.
Any ideas?
(localdb)\v11.0
doesn't look like a Server / Local Machine name, are you sure that is your instance? Would expect something likeMACHINENAME\INSTANCENAME
if it's SQL Server Express it would beMACHINENAME\SQLEXPRESS
. – user692942SQLOLEDB
especially for SQL Server 2012, you should be using the SQL Server Native Client. See SQL Server Native Client 11.0 OLE DB Provider connection strings. – user692942Server
attribute. If you have already install SQL Server Express the default instance is namedSQLEXPRESS
other wise it's a non express version of SQL Server then it will install a default instance against the machine, so just useMACHINENAME
. – user692942