Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update sqllocaldb script.
  • Loading branch information
fiseni committed Aug 6, 2023
commit 32eebabfc24783ee5775d37136555dedfcfe1b43
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public DatabaseFixture()
using (var localDB = new SqlLocalDbApi())
{
ConnectionString = localDB.IsLocalDBInstalled()
? $"Data Source=(localdb)\\mssqllocaldb;Initial Catalog={databaseName};Integrated Security=SSPI;"
? $"Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog={databaseName};Integrated Security=SSPI;"
: $"Data Source=databaseEF;Initial Catalog={databaseName};PersistSecurityInfo=True;User ID=sa;Password=P@ssW0rd!;";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public DatabaseFixture()
using (var localDB = new SqlLocalDbApi())
{
ConnectionString = localDB.IsLocalDBInstalled()
? $"Data Source=(localdb)\\mssqllocaldb;Initial Catalog={databaseName};Integrated Security=SSPI;Encrypt=False;TrustServerCertificate=True;"
? $"Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog={databaseName};Integrated Security=SSPI;Encrypt=False;TrustServerCertificate=True;"
: $"Data Source=databaseEF;Initial Catalog={databaseName};PersistSecurityInfo=True;User ID=sa;Password=P@ssW0rd!;Encrypt=False;TrustServerCertificate=True;";
}

Expand Down
4 changes: 1 addition & 3 deletions setup-sqllocaldb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ Import-Module BitsTransfer
Start-BitsTransfer -Source https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SqlLocalDB.msi -Destination SqlLocalDB.msi
Write-Host "Installing"
Start-Process -FilePath "SqlLocalDB.msi" -Wait -ArgumentList "/qn", "/norestart", "/l*v SqlLocalDBInstall.log", "IACCEPTSQLLOCALDBLICENSETERMS=YES";
<#
Write-Host "Checking"
sqlcmd -l 60 -S "(localdb)\MSSQLLocalDB" -Q "SELECT @@VERSION;"
#>
sqlcmd -l 60 -S "(localdb)\MSSQLLocalDB" -Q "SELECT @@VERSION;"