Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# JdbcConnectionStringBuilder Errors in Provided Example #35

Open
pflores429 opened this issue Jan 3, 2024 · 5 comments
Open

C# JdbcConnectionStringBuilder Errors in Provided Example #35

pflores429 opened this issue Jan 3, 2024 · 5 comments

Comments

@pflores429
Copy link

DriverPath, DriverClass and JdbcUrl from the provided example generate CS0103, name does do not exist in current context, compilation errors.

@pflores429
Copy link
Author

Got passed this error only to be confronted with the com plus 532462766 exception code when I go to create the connection.

@pflores429
Copy link
Author

I am trying to connect to an Oracle database

@tcables
Copy link
Contributor

tcables commented Jan 4, 2024

Would you be able to provide example code?

@pflores429
Copy link
Author

   static void Main(string[] args)
    {
        var Tbuilder = new JdbcConnectionStringBuilder { DriverClass = "oracle.jdbc.driver.OracleDriver", DriverPath = "C:\\Users\\DEV101\\ojdbc11.jar", JdbcUrl = "jdbc:oracle:thin:@ldap://oracleServer.corp:1510/DevDB,cn=oraclecontext,dc=world;UID='DEV101';PWD='qx3Wz>uc%xlz'" };
        var Tprops = new JdbcConnectionProperties{{ "User", "Dev101" }, { "Password", "qx3Wz>uc%xlz" } };
        using JdbcConnection Tconnection =new JdbcConnection(Tbuilder,Tprops);
        Tconnection.Open();
        Tconnection.Close();
    }

@pflores429
Copy link
Author

Fails on using JdbcConnection Tconnection =new JdbcConnection(Tbuilder,Tprops)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants