connection string - Classic ASP connecting to localdb for SQL Server -


can explain why works

conn.open "provider=sqloledb;server=tcp:myazurename.database.windows.net;database=people;uid=myuid;pwd=mypwd;encrypt=yes;" 

and doesn't

conn.open "provider=sqloledb;server=(localdb)\v11.0;database=people;uid=myuid;pwd=mypwd;encrypt=yes;" 

i copied live azure database locally dev work in classic asp , error message

microsoft ole db provider sql server error '80004005'
[dbnetlib][connectionopen (connect()).] sql server not exist or access denied.

azure sql server version: 11.0.9231 local sql server version: 11.0.2318

i can connect using same details on sql server management studio not user permissions thing...

under security server, user has public server role, user mapping 'people' database except db_denydatareader , db_denydatawriter.

i have tried (localdb)\\v11.0 doesn't make difference.

any ideas?

ok believe answer follows: doesn't (localdb)\v11.0 wants proper instance name said in first place. machinename\instancename or localhost\instancename using going replicated other devs. also, dont need 2 slashes! problem somehow didn't have local instance installed. or @lankymart


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -