dbTalk Databases Forums  

Automatically migratring metadata between instances of SQL Server2000

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Automatically migratring metadata between instances of SQL Server2000 in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Charlie Calvert
 
Posts: n/a

Default Automatically migratring metadata between instances of SQL Server2000 - 06-11-2004 , 01:36 PM






I want to move meta data between two copies of the same database running
on different machines. I do most of my work on one machine, but
sometimes have to work on a slow laptop. If I need to migrate metadata
(updated or new Stored Procedures and tables) from one machine to my
laptop, or back, is there a way I can automate the process? Is there
some way to say: hey sync this stored procedure definition in one
instance of SQL server with that in another instance?

Another way of asking the same question, but in more specific terms, is
whether there is a good way of backing up the metadata for a Stored
procedure or Table to a text file that can be placed in a source control
tool such as StarTeam or CVS? I know I can click on this and select that
and save the metadata, and then load that in on the other machine by
clicking on that and selecting this. But I want to get away from all
that laborious clicking and just run a script that automates the
process. For instance, how can I script the process of right clicking on
a table and then selecting "All Tasks | Generate SQL Script".

Thanks for your help or any hints you can offer.

- Charlie

Reply With Quote
  #2  
Old   
Jasper Smith
 
Posts: n/a

Default Re: Automatically migratring metadata between instances of SQL Server 2000 - 06-11-2004 , 04:20 PM






For a tool check out Redgates SQL Compare
http://www.red-gate.com/SQL_Compare.htm
which can be automated using
http://www.red-gate.com/sql_comparis...on_toolkit.htm

You can use SQLDMO to script your objects. Check out SQLDMO in BOL (Building
SQL Server Applications>SQL-DMO)

--
HTH

Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org

"Charlie Calvert" <charlie_NO_CAPS_INCLUDED (AT) elvenware (DOT) com> wrote

Quote:
I want to move meta data between two copies of the same database running
on different machines. I do most of my work on one machine, but
sometimes have to work on a slow laptop. If I need to migrate metadata
(updated or new Stored Procedures and tables) from one machine to my
laptop, or back, is there a way I can automate the process? Is there
some way to say: hey sync this stored procedure definition in one
instance of SQL server with that in another instance?

Another way of asking the same question, but in more specific terms, is
whether there is a good way of backing up the metadata for a Stored
procedure or Table to a text file that can be placed in a source control
tool such as StarTeam or CVS? I know I can click on this and select that
and save the metadata, and then load that in on the other machine by
clicking on that and selecting this. But I want to get away from all
that laborious clicking and just run a script that automates the
process. For instance, how can I script the process of right clicking on
a table and then selecting "All Tasks | Generate SQL Script".

Thanks for your help or any hints you can offer.

- Charlie



Reply With Quote
  #3  
Old   
mark baekdal
 
Posts: n/a

Default Automatically migratring metadata between instances of SQL Server 2000 - 06-12-2004 , 10:56 AM



check out www.dbghost.com for comparison, updating
straight from your source code.

Quote:
-----Original Message-----
I want to move meta data between two copies of the same
database running
on different machines. I do most of my work on one
machine, but
sometimes have to work on a slow laptop. If I need to
migrate metadata
(updated or new Stored Procedures and tables) from one
machine to my
laptop, or back, is there a way I can automate the
process? Is there
some way to say: hey sync this stored procedure
definition in one
instance of SQL server with that in another instance?

Another way of asking the same question, but in more
specific terms, is
whether there is a good way of backing up the metadata
for a Stored
procedure or Table to a text file that can be placed in
a source control
tool such as StarTeam or CVS? I know I can click on this
and select that
and save the metadata, and then load that in on the
other machine by
clicking on that and selecting this. But I want to get
away from all
that laborious clicking and just run a script that
automates the
process. For instance, how can I script the process of
right clicking on
a table and then selecting "All Tasks | Generate SQL
Script".

Thanks for your help or any hints you can offer.

- Charlie
.


Reply With Quote
  #4  
Old   
yaniv cohen
 
Posts: n/a

Default RE: Automatically migratring metadata between instances of SQL Server - 06-17-2004 , 09:10 AM



Hi,

Try dbMaestro. It's a product that allows comparison, migration and archiving of database schema and data.

You can find it here:

http://www.extreme.co.il





"mark baekdal" wrote:

Quote:
check out www.dbghost.com for comparison, updating
straight from your source code.

-----Original Message-----
I want to move meta data between two copies of the same
database running
on different machines. I do most of my work on one
machine, but
sometimes have to work on a slow laptop. If I need to
migrate metadata
(updated or new Stored Procedures and tables) from one
machine to my
laptop, or back, is there a way I can automate the
process? Is there
some way to say: hey sync this stored procedure
definition in one
instance of SQL server with that in another instance?

Another way of asking the same question, but in more
specific terms, is
whether there is a good way of backing up the metadata
for a Stored
procedure or Table to a text file that can be placed in
a source control
tool such as StarTeam or CVS? I know I can click on this
and select that
and save the metadata, and then load that in on the
other machine by
clicking on that and selecting this. But I want to get
away from all
that laborious clicking and just run a script that
automates the
process. For instance, how can I script the process of
right clicking on
a table and then selecting "All Tasks | Generate SQL
Script".

Thanks for your help or any hints you can offer.

- Charlie
.



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.