Connect to external SQL Server through Entity Framework -
basically need test database on external server (the model matches model of local test database).
here connection string have far:
<connectionstrings> <add name="defaultconnection" connectionstring="database=qualitylinkbuilder;server=12.345.678.901.\sqlexpress;uid=remotepc\administrator;pwd=mypassword;" providername="system.data.sqlclient" /> </connectionstrings>
when attempt connect generic error:
the underlying provider failed on open.
inner exception message:
a network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified)
it should server=12.345.678.901\sqlexpress
in connection string ( replace "\sqlexpress" relevant sql server instance name on external server )
Comments
Post a Comment