skip to Main Content

Docker SQL-Server login problem: AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback

I'm working on a Docker related application, written in C#, based on Entity Framework. One of the Docker containers, is the ms-sql-server, which is used for database access. In order to access the SQL-server, following connectionString is created: Server=ms-sql-server;Initial Catalog=Ownobjects;User…

VIEW QUESTION

Checking in C# whether MySQL database exists

I'm writing a simple console application in C# using top-level statements, and I want to check at the beginning whethere there exists a database. Here's my code: using MySql.Data.MySqlClient; using (MySqlConnection connection = new MySqlConnection("Server=localhost;Uid=root;Pwd=password;")) { connection.Open(); if (CheckDatabaseExistence(connection)) Console.WriteLine("Database…

VIEW QUESTION
Back To Top
Search