Hi @nikithakoshy,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
As I understand, you are encountering a login failure for SQL Server in the UK South region while using Entity Framework's EnsureCreated() method.
Here are some steps you can take to troubleshoot the issue:
- Ensure that the SQL Server in the UK South region is set up to allow SQL Server Authentication. If it only allows Windows Authentication, that could be the reason for the login failure.
- Confirm that the user myUsername has the necessary permissions on the SQL Server instance. The user should have at least the db_owner role for the database you’re trying to create.
- Verify that the firewall settings for your SQL Server allow traffic from the application’s IP address. Ensure that the necessary ports (typically 1433 for SQL Server) are open.
- Check the SQL Server error logs for any detailed error messages related to the login failure. This can provide clues as to why the authentication is failing.
- Use SQL Server Management Studio (SSMS) or a similar tool to manually connect to the SQL Server instance with the same credentials. If you can log in through SSMS but not through your application, it points to a configuration issue in your application.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.