Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

db script for all storedprocedures,functions and tables for one time in database Expand / Collapse
Author
Message
Posted Monday, September 20, 2010 9:07 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, June 2, 2013 11:50 PM
Points: 3, Visits: 242
db script for all stored procedures and tables for database in one time to particular location.
Post #989887
Posted Monday, September 20, 2010 10:44 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, July 14, 2014 4:48 AM
Points: 2,834, Visits: 3,950
Have you google it ? i am not sure you can get any script which will work for both table and SP. but individual script will be there. So happy hunting

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done
Post #989920
Posted Monday, September 20, 2010 11:12 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, June 2, 2013 11:50 PM
Points: 3, Visits: 242
can you please send me the db script for tables for one database. I want to store into one text file.
Post #989935
Posted Tuesday, September 21, 2010 7:22 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 3:51 AM
Points: 15,517, Visits: 27,897
You need to generate the script. You can use SQL Server Management Studio (SSMS) to generate the script. It's the easiest way. If that doesn't do what you need, you can use SQL Server Management Objects (SMO) with a programming language (I prefer PowerShell) to generate scripts differently. But no one can give you the script for your database. You need to generate it.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #990249
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse