Is there any built-it stored procedure / any database program by which I can generate all the database object script (like stored procedures, triggers, functions, tables etc.) from a particular database?
I am using SQL Server 2005 + 2008
Thanks in advance
SSMS itself uses SMO, namely the Scripter class. You can use SMO from any .Net application to extract scripts yourself.