ADO.Net : Get table definition from SQL server tables

后端 未结 5 506
梦毁少年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

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题