Is it possible to retrieve a stored procedure using c#?
What i need to do is i have to search for a particular stored procedure name in a database and if that stored procedure is available means i have to retrieve that stored procedure and write into a text file..
I dont know how to retrieve stored procedure.
Any Suggestion?
EDIT:i have retrieved the stored procedure names using SELECT NAME from SYS.PROCEDURES
and i dont know how to retrieve those stored procedures
http://databases.aspfaq.com/database/how-do-i-find-a-stored-procedure-containing-text.html
Then just create the SqlConnection & SqlCommand as normal and execute the SQL to find out the details of the proc:
C#: