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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -