Quantcast
Channel: Connect Database from IIS server using Windows Authentication in SSMS
Viewing all articles
Browse latest Browse all 6

Connect Database from IIS server using Windows Authentication in SSMS

$
0
0
Hi guys, We have IIS server in machine A
We have a database server in machine B. Every connection to database server is via Windows Authentication (not SQL Authentication). However, when I attemp to run our application in IIS (WCF service) it throws an exception.
-------Identity.Name: NT AUTHORITY\NETWORK SERVICE
-------Exception Message: Error opening connection. Connection string:data source=xxxxxxxxx;Connect Timeout = 15;App=xxxxx - 1.0.0.0;initial catalog=xxxxxxxxx;integrated security=SSPI;packet size=4096;persist security info=false;pooling=false;Connection Lifetime=1;
-------Exception Stack Trace: at Enterprise.Core.DataServices.DataAccessProvider.Connect(String CustomDatabaseServerName, String CustomDatabaseName, Boolean ReadWritable, Int32 ConnectionTimeOut, Boolean DoNotLookupServerType) at Enterprise.Core.Initialization.mPerformInitialization(String ApplicationName, Int32 ApplicationUsageID) at Enterprise.Core.Initialization.Initialize(String ApplicationName, ApplicationType ApplicationType, Int32 ApplicationUsageID)
Obviously, the account NT AUTHORITY\NETWORK SERVICE cannot access Database in machine B because it's not authenticated. Is there a way I can change the Identity to something like MyDomain\MyAccount?

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images