I try to connect to an OracleDB from an c# project.
SqlConnection thisConnection = new SqlConnection(
"Server=127.0.0.1:3306;Database=db1;User id=abc;Password=psw;");
While running the code an exeption is thrown:
A first chance exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid)
I tried to connect with an local mysql db either and the same exeption is thrown.
I can connect to the server with the Oracle SQL developer tool.
Where is the Problem ?