Перенес программу на другую винду, начали вылетать ошибки подключения к локальной базе данный
System.Data.SqlClient.SqlException: "An attempt to attach an auto-named database for file D:\Microsoft VS Code\****\****\Database.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."
Вот одна из ошибок вылетела с этим кодом
SqlConnection connect = new SqlConnection();
SqlCommand cmd = new SqlCommand();
connect.ConnectionString =
@"Data Source=(LocalDB)\MSSQLLocalDB;" +
@"AttachDbFilename=D:\Microsoft VS Code\RKSI_bot\RKSI_bot\Database.mdf;" +
@"Integrated Security = True;" +
@"Connect Timeout = 30;";
cmd.Connection = connect;
connect.Open();