Skip to content

Commit

Permalink
Remove creation of the user account when initializing a database.
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesTourreau committed Sep 26, 2024
1 parent 42d1df5 commit 1b388b3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ public static SqlServerDatabase Initialize(this SqlServerDatabaseInitializer ini

context.Database.EnsureCreated();

if (!string.IsNullOrWhiteSpace(connectionStringBuilder.UserID))
{
server.Master.ExecuteNonQuery($@"
IF SUSER_ID ('{connectionStringBuilder.UserID}') IS NULL
CREATE LOGIN [{connectionStringBuilder.UserID}] WITH PASSWORD = '{connectionStringBuilder.Password}'");
}

initializer.IsInitialized = true;
}

Expand Down

0 comments on commit 1b388b3

Please sign in to comment.