Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • I have removed the <sql> tag since this isn't related to the ANSI/ISO SQL language. Instead I added the <sql-server> tag. (MS SQL Server is just one of many dbms products supporting the SQL language.) Commented Sep 14, 2024 at 21:02
  • 1
    Is your web application executing in a Docker container (or a Visual Studio devcontainer)? From a networking perspective containers are essentially their own little Linux VM, so 127.0.0.1, ::1 and localhost all refer to the container itself... but your SQL Express instance is running on the Docker host. If your app is running in a container what happens if you use host.docker.internal\\SQLEXPRESS01 instead of localhost\\SQLEXPRESS01? Commented Sep 14, 2024 at 21:13
  • 4
    Please do not upload images of code/data/errors when asking a question. Commented Sep 14, 2024 at 21:14
  • The image is deleted and I've replaced it with the string value of the Error. Sorry I forgot that it was not a good practice to paste a sceenshot of errors. Commented Sep 15, 2024 at 6:56
  • 1
    Worth +1 as OP found solution and added it to the question Commented Sep 15, 2024 at 8:26