S
Sam Malone
I am trying to get details from a database. I really want to use only native
VS.NET managed code "stuff" (just cuz I want to) and avoid any interop
stuff. So, I'm trying to do this without using any ADODB or ADOX stuff.
What I'm trying to do is retrieve all the properties of all the components
of a database. The GetSchema method goes a long way but (so far) I'm missing
how to get the default value of a column. In the table that's returned using
the GetSchema ("Columns", res) method there "appears to be" a column that
someone intended to be populated with the default value (it's called
COLUMN_DEF) but I have never seen anything in it (and I KNOW the database
definition specifies one). The database in question (in this case) is a
MySQL database but I'm trying to get this program to be very generic so that
no matter what the source database is, I'd get the same (and correct)
results.
Any thoughts?
VS.NET managed code "stuff" (just cuz I want to) and avoid any interop
stuff. So, I'm trying to do this without using any ADODB or ADOX stuff.
What I'm trying to do is retrieve all the properties of all the components
of a database. The GetSchema method goes a long way but (so far) I'm missing
how to get the default value of a column. In the table that's returned using
the GetSchema ("Columns", res) method there "appears to be" a column that
someone intended to be populated with the default value (it's called
COLUMN_DEF) but I have never seen anything in it (and I KNOW the database
definition specifies one). The database in question (in this case) is a
MySQL database but I'm trying to get this program to be very generic so that
no matter what the source database is, I'd get the same (and correct)
results.
Any thoughts?