Is there a way to back up the design changes in a SQL Server database
without backing up all the data? It's just test data at this point. 9 1579
The way I usually do it is to use the scripting feature in Enterprise Manager.
This will generate SQL scripts that can be run on a new database to rebuild
the database structure.
On 4 Jan 2005 11:38:05 -0800, "Jerry Porter" <je****@personablepc.com> wrote: Is there a way to back up the design changes in a SQL Server database without backing up all the data? It's just test data at this point.
There are some thrid party tools like RegGate Compare that will push
just the changes and keep the data intact...!
Right click on the db --> all tasks --> generate SQL script. You can
script the whole db, you can do that before and after changes to keep
track of versions. You can create a job to do it to.
TGru
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Thanks Steve,
I had used that tool, but hadn't taken it all the way.
[Right-click on database, All Tasks, Generate SQL Script, Show All,
Script all objects]
I don't suppose there's a way to automate this?
On 4 Jan 2005 12:19:21 -0800, "Jerry Porter" <je****@personablepc.com> wrote: Thanks Steve,
I had used that tool, but hadn't taken it all the way. [Right-click on database, All Tasks, Generate SQL Script, Show All, Script all objects]
I don't suppose there's a way to automate this?
Unfortunately, it seems not. Most other database servers make this a feature
of the database server itself, not the GUI tool, but this is Microsoft we're
talking about.
Rightclick and generating script will give you scripts but when you run
them in production environment, it will drop tables and recreate
them... You still need to figure out a way to save the data.... So I
wouldnt recomend that unless, you just wanted to keep a log of changes
made to the DB....!
As far as I know, there are no direct way to do this unless you go for
some thrid party tool....
I found some old threads suggesting the use of SQL-DMO to generate
scripts, so I looked into it. The following VBA code generates a text
file with scripts for all (?) database objects:
Dim srv As SQLDMO.SQLServer2
Dim db As SQLDMO.Database2
Dim tr As SQLDMO.Transfer2
Set srv = New SQLDMO.SQLServer2
srv.Connect "MyServer", "sa", ""
Set db = srv.Databases("MyDatabase")
Set tr = New SQLDMO.Transfer2
With tr
..CopyAllObjects = True
..DestDatabase = "test"
End With
db.ScriptTransfer tr, SQLDMOXfrFile_Default _
Or SQLDMOXfrFile_SingleSummaryFile, _
"c:\temp\dbscript.txt"
Set tr = Nothing
Set db = Nothing
Set srv = Nothing
There are at least 3 scripting methods (Script, GenerateSQL,
ScriptTransfer), and a long list of options, so there's a good change I
don't have it exactly right.
Jerry This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mark |
last post by:
Hi
I'm hoping that some could point me in the right direction for "best
practice" in:
1) securely backing up a complete sql7 and 2000 server containing many
databases.
2) backing up an...
|
by: kneejerkreaction |
last post by:
I have a couple of general questions:
(1) Are many companies really developing OO systems, and if so, who does the OO analysis, i.e. the design of classes, is this typically done by the developers...
|
by: J. Frank Parnell |
last post by:
hello, i dont know asp at all, but i have been asked to backup a database
that is used on a site which uses .aspx.
i dont need to do anything with it, just copy it and send it along to
someone...
|
by: Jerry Porter |
last post by:
Is there a way to back up the design changes in a SQL Server database
without backing up all the data? It's just test data at this point.
|
by: Stewart Allen |
last post by:
Hi
Just asking for ideas on table design.
The design I have is as follows:
*tblBuildData*
BuildID (PK) AutoNumber
ManufactureDate
SerialNumber
|
by: manning_news |
last post by:
Using A2K. Last year, a design master for a customer was developed and
placed it in their folder on the network which I do not have rights to.
I found a replica on my PC that I would like to...
|
by: rdemyan via AccessMonster.com |
last post by:
I have code in my front end that opens a form for backing up the front end.
I'll give a brief description of what the form does:
1) When the backup form opens, it closes all open forms except for...
|
by: YellowFin Announcements |
last post by:
Introduction
Usability and relevance have been identified as the major factors
preventing mass adoption of
Business Intelligence applications. What we have today are traditional
BI tools that...
|
by: jim |
last post by:
I'd like to get some .net sample code that shows me how to make a complete
backup of a hard drive (like my C: drive) to another location (say my D:
drive) while the C: drive is in use.
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |