SQL Server Connection String - Different Domain -


i have sql server connection string in config file:

<add name="dbmaster" connectionstring="data source=servername\namedinstance;initial catalog=somedb;integrated security=sspi;" providername="system.data.sqlclient"/> 

this fine if running domain sql server located, receive following error on different domain:

system.data.sqlclient.sqlexception: error has occurred while establishing connection server. when connecting sql server 2005, failure may caused fact under default settings sql server not allow remote connections. (provider: sql network interfaces, error: 26 - error locating server/instance specified)

there trust between domains.

i tried following no success:

<add name="dbmaster" connectionstring="data source=servername.domain.com\namedinstance;initial catalog=somedb;integrated security=sspi;" providername="system.data.sqlclient"/> 

i can ping servername.domain.com.

i have tried connecting sql server on different domain using sql server management studio same error above received.

is there obvious doing wrong?

if management studio giving same error, problem isn't application. problem sql server configuration.

either trust between domains isn't configured enable integrated security across domains or sql server isn't configured allow remote connections (like error message states).

integrated security across domains more hassle it's worth. using sql server authentication relieve of headaches.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -