title: How do I get the content of a SQL Stored Procedure in Powershell?
body: <p>I'm perverted in the sense that I hate exploring code and database structures in a tree view and I'd much prefer using something like the Powershell for that. Most of the stuff I need to do in SQL is exploring, i.e. looking at what columns does a table have or what does a particular stored procedure do. </p>
  
  <p>Looking at table columns is as easy as ls'ing the columns directory of a table, but how would I get the contents of a stored procedure?</p>