.net - asp.net website and sql server join to domain -
i have asp.net web application running on webserver, uses database server (the same server). working fine, until joined server domain.
the following error happend on web application:
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: named pipes provider, error: 40)
when connect sql server via sql management studio localy works normal. maybe in connectionstring?
that error means either sql server hasn't had remote connections enabled, or there no sql instance @ location specified in connection string.
as have joined server domain, possible server name has changed? trying connect user has rights connect?
edit: try using connection string:
database=db;server=.\[instance name];user id=sa;password=pwd;
note .\
, , need fill in default instance name. if have sql browser service turned off not able find default instance unless explicitly identify in connection string (you may going when connect ssms).
Comments
Post a Comment