Simple way to programmatically get all stored procedures

后端 未结 12 2175
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 09:22

Is there a way to get stored procedures from a SQL Server 2005 Express database using C#? I would like to export all of this data in the same manner that you can script it o

12条回答
  •  难免孤独
    2020-12-24 09:39

    Assuming you have SqlConnection object called sqlCon, simplest way is to call sqlCon.GetSchema("Procedures")

提交回复
热议问题