D
Daniel Bello Urizarri
Hi:
Im writing a table designer through an ado.net provider. Im using a generic
ado.net provider, so i cant use database specific data (sysobjects or
something like that). I can get some information using
DataReader.GetSchemaTable(), but is not enoug. I need, for instace, the
types the database uses to fill a combobox, so the user can choose and i can
create my "create table" and "alter table sentences".
At the moment im using some rare practices like:
When the user changes the data type or the size of the type for a column, I
have to create an auxiliar table, to send the data, drop the current table
and then create a new table with the schema selected by the user, update
that table, and drop the auxiliar one. (I don't like that, because if the
connection fails, there will remain some garbage tables on the database).
Another rare thing im doing is to execute many IDbCommand.Prepare () to
"create" tables with all the data base data types i know, (int, blob, char..
45! in total) to discriminate which of them the current database supports..
:-b
As you can see, i need real solutions and ideas. Is there some article, or
source code available? Do you have any suggestions?
Please help
Im writing a table designer through an ado.net provider. Im using a generic
ado.net provider, so i cant use database specific data (sysobjects or
something like that). I can get some information using
DataReader.GetSchemaTable(), but is not enoug. I need, for instace, the
types the database uses to fill a combobox, so the user can choose and i can
create my "create table" and "alter table sentences".
At the moment im using some rare practices like:
When the user changes the data type or the size of the type for a column, I
have to create an auxiliar table, to send the data, drop the current table
and then create a new table with the schema selected by the user, update
that table, and drop the auxiliar one. (I don't like that, because if the
connection fails, there will remain some garbage tables on the database).
Another rare thing im doing is to execute many IDbCommand.Prepare () to
"create" tables with all the data base data types i know, (int, blob, char..
45! in total) to discriminate which of them the current database supports..
:-b
As you can see, i need real solutions and ideas. Is there some article, or
source code available? Do you have any suggestions?
Please help