Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating a new Oracle data source (DSN) programatically ?

563288Feb 25 2007 — edited Feb 26 2007
One can create a new data source (MS Access) by using the following code in a C++.NET program:
		// create a new database
		CString csConfig = "CREATE_DB=\"" + "mynew.mdb" + "\"" + "\0\0";
		TRACE1("csConfig = %s\n", csConfig);
		const char *config_string = csConfig.GetBuffer(0);
		SQLConfigDataSource(NULL, ODBC_ADD_DSN, "Microsoft Access Driver (*.mdb)", config_string);
Does anyone know how to configure the string for Oracle 10g XE to establish a new DSN ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2007
Added on Feb 25 2007
3 comments
489 views