ADO.Net : Get table definition from SQL server tables

后端 未结 5 562
梦毁少年i
梦毁少年i 2021-01-12 20:37

I am using C# to write a method that returns the following information about a table: column names, column types, column sizes, foreign keys.

Can someone point me in

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 20:57

    I think you need the System.Data.DataTable class:
    http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx

提交回复
热议问题