Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Programming / SQL / July 2008

Tip: Looking for answers? Try searching our database.

A job to script out Tables and prosedures.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
geir - 18 Jul 2008 07:32 GMT
Hi all.
We do have a lot of DB's on our server. This is a copy of customer DB's with
Test data, but customized tables and prosedyres. We do take a standard
database backup of thes every day, but the data it self is of no importanse.
To reduse size we wonder if there is a way of automatic skript all the tables
(not systemtables) and all the stored prosedures out to a file. If we need to
restore some of this we just create a new DB with the testdata and run table
an SP skript. 2 skriptfiles take a lot less space than a full DB  backup.

Signature

Thanks all
Regards Geir

ML - 18 Jul 2008 11:12 GMT
Which version of SQL Server?

In SQL Server Management Studio you can use the Scripting Wizard.
Right-click the database node, then under Tasks select Generate Scripts.

ML

---
Matija Lah, SQL Server MVP
http://milambda.blogspot.com/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.