© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
3 replies
s0lkr ⸸

Error SQL in appsettings.json string

I can't connect my project to the SQL Server Local instance. Even after configuring the connection string in appsettings.json, it doesn't work when running the dotnet ef database update command.

I've tried various methods:

- Using Windows credentials gives an error saying it’s not supported.
- Using the default sa credentials also fails.

Error:
PS $dotnet ef database update
Build started...
Build succeeded.
fail: Microsoft.EntityFrameworkCore.Database.Connection[20004]
An error occurred using the connection to database '' on server 'DESKTOP-2222222'.
An error occurred using the connection to database '' on server 'DESKTOP-2222222'.
info: Microsoft.EntityFrameworkCore.Infrastructure[10404]
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Check if appsettings.json or appsettings.Development.json
C#CC# / help
3y ago
appsettings.json in legacy application
C#CC# / help
4y ago
Appsettings.json across projet
C#CC# / help
2y ago
❔ Access AppSettings.json in asp.net core
C#CC# / help
3y ago