I'm wondering if anyone knows of a way to (from C#) retrieve the SQL statement that created a specific View, Stored Procedure, Function etc. on a MSSQL server?
UPDATE:
The suggestion by R. Richards, using "sp_helptext" was what I was looking for. I wasn't aware of this procedure, thanks :)