473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Backup Structure Only

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.

Jul 13 '07 #1
6 9542
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?

Jul 13 '07 #2
On Jul 13, 8:00 am, Trevor Best <googlegro...@besty.org.ukwrote:
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

Jul 13 '07 #3
Trevor Best (go**********@besty.org.uk) writes:
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, es****@sommarskog.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
Jul 13 '07 #4
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.

Jul 16 '07 #5
Thanks all. I'm planning on upgrading SQL Compare anyway so will go
with Erland's suggestion.

Jul 17 '07 #6
On Jul 13, 4:33 pm, sqlmatt <sqlm...@gmail.comwrote:
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 ;-)

Jul 17 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
HI, I'm looking for a script that will allow users/admins to have a one click backup solution for a MYSQL Database.. 'BACK DATABASE' button, click and its done... The a restore option, that...
2
by: Michael Orlando | last post by:
Any help would be greatly appreciated. My problem is that I need to set up a backup SQL Server 2000 machine which can be used in case of a failure to my primary. All databases (30 as of now)...
7
by: bobdirls | last post by:
Hi, Is there any way of telling if a database or table has been updated, altered or deleted from since the last backup was made in SQL server. Windows does not correctly report .mdf file size...
1
by: Fabius | last post by:
Hello, i'm trying to transfer a DB2 database from a PC to another. Following suggestion that Mr. Jan M. Nelken and Mr. Pierre Saint-Jacques give me on this newsgroup i first made a backup of...
5
by: shenanwei | last post by:
I have a primary server and backup server located in different physical sites. The primary server is live and ship logs to backup site every 5 minutes. The primary server is being full online...
1
by: Joachim Klassen | last post by:
Hi all, a couple of questions regarding LOAD COPY YES: when does a LOAD COPY YES start to write its backup image ? After LOAD Phase or after BUILD or DELETE phase? What gets backed up - data...
5
by: Konstantin Andreev | last post by:
Hello, all. I can't figure out <subjectfrom documentation. I had configured LOGARCHMETH1 = DISK:/bak/logs so all full log files are copied *out* of the active log path. Let I issue | #...
1
by: rcamarda | last post by:
I have a database backup that our vendor proformed. I dont know if they verified the backup, nor do I have the disk space to create a new backup with verify or retore the current backup. Is...
4
by: winsletmathew | last post by:
I need the backup of only the structure of database, not the data. I tried, this procedure , but it is copying the whole database create Procedure BackupAlldatabases as
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.