Just run this query.
Select Object_Name(C.id) AS Name , text From SysComments AS C Left Join SysObjects AS O On C.id = O.id Where O.xtype = 'P'
Select Object_Name(C.id) AS Name , text From SysComments AS C Left Join SysObjects AS O On C.id = O.id Where O.xtype = 'P'


Lajapathy ArunPosted Jul 4, 2012, 4:18 AM EDT
Keep blogging :)
Kunal VaishyaPosted Jul 4, 2012, 1:51 AM EDT
Thanks Dear
Lajapathy ArunPosted Jul 3, 2012, 1:38 AM EDT
http://www.c-sharpcorner.com/Blogs/9135/getting-sql-script-of-database-object-of-used-database-using.aspx Hope this helps you.
Lajapathy ArunPosted Jul 3, 2012, 1:36 AM EDT
SysComments outdated for production try to use sys.sql_modules and use definition column.
Kunal VaishyaPosted Jul 3, 2012, 12:22 AM EDT
no dear its gives current databases
Lajapathy ArunPosted Jul 2, 2012, 9:16 PM EDT
This query gets all the proc from all databases ?