Relative Content

Tag Archive for c#postgresql

How to connect to AWS Postgresql database C# with JDBC

I am having trouble figuring out how do I connect to a JDBC AWS database via C#. I installed the library Npgsql but does not seem to work if I put the JDBC URL I have as the Host. I know JDBC is Java so not sure how to do this with C#. In DBeaver I have setup PostgreSQL driver then I have selected Connect By URL. The URL has the address “jdbc:postgresql://ma-aurora-postgres.cluster-dssss.us-east-1.rds.amazonaws.com:5432/mydb” Authentication I have Database Native selected and use a service account username and password.

How to connect to AWS Postgresql database C# with JDBC

I am having trouble figuring out how do I connect to a JDBC AWS database via C#. I installed the library Npgsql but does not seem to work if I put the JDBC URL I have as the Host. I know JDBC is Java so not sure how to do this with C#. In DBeaver I have setup PostgreSQL driver then I have selected Connect By URL. The URL has the address “jdbc:postgresql://ma-aurora-postgres.cluster-dssss.us-east-1.rds.amazonaws.com:5432/mydb” Authentication I have Database Native selected and use a service account username and password.