June 1, 2009 at 2:34 am
hi
All,
Is there any QueryTo Get All Scripts in A DataBase
June 1, 2009 at 2:47 am
You can generate the script of the whole database including the objects using "Generate SQl Script Wizard".
Tanx 😀
June 1, 2009 at 9:37 pm
hi
Thanx for your reply i know that is there any other way to Genereate the Script to Get All Database scripts using Query
June 2, 2009 at 7:16 am
Syscomments table's text column contains the script of sps,triggers and functions..
That may be partially smthng that u r looking for..
Regards,
Raj
June 2, 2009 at 5:37 pm
Here's a good starting point for you
select p.name,c.text from sys.syscomments c
inner join sys.procedures p
on p.object_id = c.id
June 5, 2009 at 2:49 am
hi
Thanx for u r Reply
Yes we can get the Sp's function in this Quesry
select p.object_id, p.name,c.text from sys.syscomments c
inner join sys.procedures p
on p.object_id = c.id
and as well this
select p.name,c.definition from sys.sql_modules c
inner join sys.objects p
on p.object_id = c.Object_Id
but my Question is How can we get Tables scripts and what ever we get the resultset from the the above mentioned Query i need take that in new Query window with same indentation is it possibe if so how
Thanks
Deepak.a
June 7, 2009 at 8:38 pm
Do a search for the old ScptXfr.exe code that used to come with SQL Server 2000. Rumor has it that it works well with SQL Server 2005 but I've not tested it because I no longer have it.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply