views:

447

answers:

3

How to load only the schema of the tables into a dataset.

+4  A: 

SqlDataAdapter.FillSchema

OJ
This gives me schema of all tables in the dataset but How do I get relations between tables ?
this. __curious_geek
A: 

Any LINQ oriented answer?

Daud
What's wrong with "SqlDataAdapter.FillSchema"? you're working with DataSets this is the way to do it.
Pop Catalin
Yeah I'm using this now.
Daud
+1  A: 

Do a query that normaly would return your data and add a where clause so that no rows are returned.

idstam