Script SQL 2005 database to individual files?
- From: "Ted O'Connor" <toconnor@xxxxxxxxx>
- Date: 27 Feb 2006 09:46:15 -0800
I am trying to script the DROP(IF EXISTS) and CREATE for all of my
tables, views, stored procs, and functions to individual SQL text files
(one per object). This was trivially done in SQL 2000 with Enterprise
Manager, but when I try in SQL 2005 through Management Studio my only
"script mode" options are:
- Script to file (which is one huge file with everything)
- Script to Clipboard
- Script to New Query Window
FYI, I get to this screen through Management Studio by right clicking
on a database and selecting Tasks > Generate Scripts... > Next (doesn't
seem to matter what combo of objects I select to script or what other
options). I am using SQL Server 2005 Developer (which is Microsoft SQL
Server Management Studio 9.00.1399.00).
Any solution to this (i.e. via Management Studio, command line, etc.)
would be greatly appreciated.
Thanks.
Ted
.
- Follow-Ups:
- Re: Script SQL 2005 database to individual files?
- From: Erland Sommarskog
- Re: Script SQL 2005 database to individual files?
- From: Ted O'Connor
- Re: Script SQL 2005 database to individual files?
- Prev by Date: Send 2 SQL statements using Integrated services
- Next by Date: Re: Script SQL 2005 database to individual files?
- Previous by thread: Send 2 SQL statements using Integrated services
- Next by thread: Re: Script SQL 2005 database to individual files?
- Index(es):
Relevant Pages
|
Loading