Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get only the schema of the database into a dataset?

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

like image 725
Malik Daud Ahmad Khokhar Avatar asked Oct 27 '08 12:10

Malik Daud Ahmad Khokhar


2 Answers

SqlDataAdapter.FillSchema

like image 196
OJ. Avatar answered Sep 19 '22 12:09

OJ.


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

like image 20
idstam Avatar answered Sep 19 '22 12:09

idstam