PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Is there any way to get database schema in generic way?

Reply

Is there any way to get database schema in generic way?

 
Thread Tools Rate Thread
Old 08-02-2006, 12:48 AM   #1
Young Jin
Guest
 
Posts: n/a
Default Is there any way to get database schema in generic way?


I'm writing code that provides generic view(vendor independent) to the
client about table list, primary key or view. Almost all connections
are made via vendor's .NET provider.

I researched and found that OleDbConnection.GetOleDbSchemaTable() can
make it. But I only make connection via .NET provider, so it's
impossible.

Is there anybody has idea about generic way to get db schema in
ado.net?

Thank you in advance.

  Reply With Quote
Old 08-02-2006, 02:42 AM   #2
=?Utf-8?B?VmFsIE1henVyIChNVlAp?=
Guest
 
Posts: n/a
Default RE: Is there any way to get database schema in generic way?

Hi,

Since each database has its own internal format, there is no generic way to
get schema definition. Most generic way, actually, is using that Oledb
provider. But why does not it work for you?

--
Val Mazur
Microsoft MVP
http://xport.mvps.org

"Young Jin" wrote:

> I'm writing code that provides generic view(vendor independent) to the
> client about table list, primary key or view. Almost all connections
> are made via vendor's .NET provider.
>
> I researched and found that OleDbConnection.GetOleDbSchemaTable() can
> make it. But I only make connection via .NET provider, so it's
> impossible.
>
> Is there anybody has idea about generic way to get db schema in
> ado.net?
>
> Thank you in advance.
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off