field size of database column

  • Thread starter Thread starter Saifee
  • Start date Start date
S

Saifee

hi friends,

I have a database table with some columns say name varchar2
(20).
Now i want to get the column data szie i.e 20 in ado.net
how do i get it..pls help
 
Hi,

OleDbConnection.GetOleDbSchemaTable will provide the info.
The code below will give you info for column COLUMNNAME:
DataTable table =
oleDbConnection1.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new
object[]{null, null, null, "COLUMNNAME"});
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top