<p>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 our using SQL Server Management Studio, without having to install the GUI.</p>

<p>I've seen some references to do thing via the PowerShell but in the end a C# console app is what I really want.</p>

<p><strong><em>To clarify....</em></strong></p>

<p>I'd like to script out the stored procedures. The list via the <code>Select * from sys.procedures</code> is helpful, but in the end I need to script out each of these.</p>

This blog post
suggests running this against your database:
```
```
select * from sys.procedures
```
```