dbTalk Databases Forums  

Backup Structure Only

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Backup Structure Only in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Trevor Best
 
Posts: n/a

Default Backup Structure Only - 07-13-2007 , 07:00 AM






Is there a way to back up the structure of the database only? i.e.
backup without the data.

I sometimes need to backup a database in one location and compare the
structure in another, can be a pain if there's 600MB of data that goes
with it.


Reply With Quote
  #2  
Old   
sqlmatt
 
Posts: n/a

Default Re: Backup Structure Only - 07-13-2007 , 10:33 AM






I do not believe you can backup just the db structure. Why not use a
tool like AdeptSQL Diff or Red Gate SQL Compare for a schema
comparison?


Reply With Quote
  #3  
Old   
xman
 
Posts: n/a

Default Re: Backup Structure Only - 07-13-2007 , 03:08 PM



On Jul 13, 8:00 am, Trevor Best <googlegro... (AT) besty (DOT) org.uk> wrote:
Quote:
Is there a way to back up the structure of the database only? i.e.
backup without the data.

I sometimes need to backup a database in one location andcomparethe
structure in another, can be a pain if there's 600MB of data that goes
with it.
Hi Trevor,

have a look at xSQL Software's (www.xsqlsoftware.com) xSQL Object - it
allows you to take snapshot of the database schema only (without the
data). You can then compare snapshots to live databases or snapshots
to snapshots etc.

Thanks,
JC
xSQL Software
http://www.xsqlsoftware.com



Reply With Quote
  #4  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Backup Structure Only - 07-13-2007 , 04:48 PM



Trevor Best (googlegroups (AT) besty (DOT) org.uk) writes:
Quote:
Is there a way to back up the structure of the database only? i.e.
backup without the data.

I sometimes need to backup a database in one location and compare the
structure in another, can be a pain if there's 600MB of data that goes
with it.
The new version of SQL Compare from Red Gate permits you to script the
database to a folder, and then you can compare a database to that folder.

You can also script the database from Enterprise Manager and SQL Server
Mgmt Studio, and then create a database from that script on the target.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #5  
Old   
Sualeh Fatehi
 
Posts: n/a

Default Re: Backup Structure Only - 07-16-2007 , 04:45 PM



The free, open-source SchemaCrawler tool will do what you need. You
can take human-readable snapshots of the schema and/ or data, for
later comparison. Comparisons are done using a standard diff tool such
as WinMerge. SchemaCrawler outputs details of your schema (tables,
views, procedures, and more) in a diff-able plain-text format (text,
CSV, or XHTML). SchemaCrawler can also output data (including CLOBs
and BLOBs) in the same plain-text formats. A lot of examples are
available with the download to help you get started. You will need to
provide a JDBC driver for your database, such as the free jTDS driver
for SQL Server.

You can download a pre-packaged version of SchemaCrawler for SQL
Server to get you started quickly. SchemaCrawler is available at
SourceForge:http://schemacrawler.sourceforge.net/

Sualeh Fatehi.


Reply With Quote
  #6  
Old   
Trevor Best
 
Posts: n/a

Default Re: Backup Structure Only - 07-17-2007 , 05:50 AM



Thanks all. I'm planning on upgrading SQL Compare anyway so will go
with Erland's suggestion.


Reply With Quote
  #7  
Old   
Trevor Best
 
Posts: n/a

Default Re: Backup Structure Only - 07-17-2007 , 05:52 AM



On Jul 13, 4:33 pm, sqlmatt <sqlm... (AT) gmail (DOT) com> wrote:
Quote:
I do not believe you can backup just the db structure. Why not use a
tool like AdeptSQL Diff or Red Gate SQL Compare for a schema
comparison?
yebbut, kinda need to get the databases to the same location to
compare them ;-)



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.