I am trying to connect to MS SQL Server database using SQL Authentication, but it fails with this error:
Cannot open database “DatabaseName” requested by the login. The login failed. rnLogin failed for user ‘NT AUTHORITY\NETWORK SERVICE’.
I am trying to connect to MS SQL Server database using SQL Authentication, but it fails with this error:
Cannot open database “DatabaseName” requested by the login. The login failed. rnLogin failed for user ‘NT AUTHORITY\NETWORK SERVICE’.
If you are using Windows authentication, thennCreate a SQL Server log login for NT AUTHORITY\NETWORK SERVICE on your SQL Server nornChange the connection string like this nnconnectionString=" Servere=.\SQLExpress; Database=IFItest; User ID=UserName; pwd=password"n