I have multiple display programmed using C# connecting to a SQL database. I am trying to move the database from a computer on our network to the IT department SQL server for backup and stability reasons (the current computer I have been using is in our factory and used for running the display of one of our machines and has been shut off, had hard drive failures, etc). I get the following error when I run.
The program works when I set Integrated Security = True and add the windows logins as administrators into SQL server for the specific database, but the IT department does not want to have 20 or so username/ passwords in the SQL server for all the computers that are using the program so they created a user for the SQL server that will encompass all the users.
string SQL_Connection = @"Data Source = ComputerName; Initial Catalog = DatabaseName; Integrated Security = False; User ID = Username.sql; Password = Password ; Connect Timeout = 15;";
$exception {"Login failed for user 'Username.sql'."} System.Data.SqlClient.SqlException
The error log shows:
Login failed for user 'Username.sql' Reason: Could not find a login matching the name provided. Error: 18456, Severity: 14, State: 5.