Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ASE 15 Change Database failing (OLEDB)

50 views
Skip to first unread message

jmzl666

unread,
Nov 16, 2010, 5:21:37 PM11/16/10
to
Hi all, I as using the Open Client 12 SDK in my application, I'm
moving it to Open Client 15, the problem I'm having is that I cant
change the database after the connection is opened, when I use the
ChangeDatabase Method of the connection object i get this error:

System.InvalidOperationException: The 'current catalog' property was
read-only, or the consumer attempted to set values of properties in
the Initialization property group after the data source object was
initialized. Consumers can set the value of a read-only property to
its current value. This status is also returned if a settable column
property could not be set for the particular column. --->
System.Data.OleDb.OleDbException: No error message available, result
code: DB_E_ERRORSOCCURRED(0x80040E21).

I'm using the 15.0.362 version of the OleDB Drivers, the connection
string that I already tried are this :

Provider=ASEOLEDB;Data Source={0};User Id={1};Password={2};Initial
Catalog={3};
Provider=ASEOLEDB;Data Source={0};User
Id={1};Password={2};Catalog={3};
Provider=ASEOLEDB;Data Source={0};User
Id={1};Password={2};Database={3}; (whit this one the Database Property
of the connection object is an empty string)

Thanks for your help.

Juan Zamudio

0 new messages