dbTalk Databases Forums  

Re: Export only database structure (no data) w/Transact SQL

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: Export only database structure (no data) w/Transact SQL in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Export only database structure (no data) w/Transact SQL - 06-16-2004 , 09:44 AM






Yep

You need to use the SQLDMO object library. I would recommend doing this in
VBScript not TSQL (although it can be done) and use SQL Server Agent to do
the scheduling




--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"SQL DBA" <SQLDBA (AT) discussions (DOT) microsoft.com> wrote

Quote:
Does anyone know how I can perform a nightly export of the database
structure only? I need to set up a nightly job for this.




Reply With Quote
  #2  
Old   
S. Enderlin
 
Posts: n/a

Default RE: Export only database structure (no data) w/Transact SQL - 06-16-2004 , 01:04 PM







Quote:
Does anyone know how I can perform a nightly export of the database structure only? I need to set up a nightly job for this.
You can use the Copy SQL Server Objects Task - there's an option inside where you can move the schema only.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.