Getting a table's schema - OleDb.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Nelson

    #1

    Getting a table's schema - OleDb.Net

    My goal is to slurp out of SQL server (via OleDB) a table's
    field and primary key fields. The DotNet stuff has my head spinning....

    I have:

    dt = conn.GetOleDbSc hemaTable(OleDb SchemaGuid.Tabl es,
    new Object[]
    {"test",null,nu ll,"TABLE"});

    This gets me the DataSet for that table in the Schema, but I can't seem to
    figure
    out where to go from here. I guess have to interate through a Collection
    in this DataSet or it's ChildRelations, but I haven't been able to find a
    good description/sample in either MSDN or via the Net. Can someone
    give me a simple sample, or point me in a direction?
    Thanks.



Working...