gda_connection_open

Name

gda_connection_open -- 

Synopsis

gint gda_connection_open (Gda_Connection* cnc, gchar* dsn, gchar* user, gchar* pwd);

Arguments

cnc

the connection object which describes the server and the database name to which the connection shuld be opened

dsn

The DSN of the database. Can be NULL.

user

The username for authentication to the database. Can be NULL.

pwd

The password for authentication to the database. Can be NULL.

Description

The function activates the correct CORBA server (defined with he #gda_connection_set_provider() function. Then it tries to open the database using the DSN or the default database as a data source. If user or pwd is not NULL, it will overwrite the appropriate entry in the DSN passed as par2. Entries in the DSN have the form = seperated from the database name . Currently the DSN is not parsed.

Returns

0 on success, -1 on error