Connecting Tech Pros Worldwide Help | Site Map

ms sql 2000 - create update script

  #1  
Old July 19th, 2008, 06:35 PM
Jarosław Kozik
Guest
 
Posts: n/a
how to create script - update database development code using MSSQL 2000
Enterprise Manager

i'm trying in this way

all tasks -genetate sql script .... ( in this way I can generate only
CREATE Database SCRIPT ... )

[ IJKK]






  #2  
Old July 19th, 2008, 10:35 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


Jarosław Kozik (jkozik@op.pl) writes:
Quote:
how to create script - update database development code using MSSQL 2000
Enterprise Manager
>
i'm trying in this way
>
all tasks -genetate sql script .... ( in this way I can generate
only CREATE Database SCRIPT ... )
I'm sorry, but I don't understand what you are trying to achieve. Could
you clarify?


--
Erland Sommarskog, SQL Server MVP, esquel@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
  #3  
Old July 19th, 2008, 11:45 PM
Thomas Arthur Seidel
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


For updating a data base (left: Developers latest output, right: Customers data
base), we use "RedGate". That is a commercial program. Not cheap, not simple, but
until now I have not found anything better. What a shame.

One of the tricks to use that program is, to first do all the table extensions (a
good developer will never delete a column, and will never redefine an existing
column. So only new columns will be added). Depending on the size of the customer
data base, this can take a while. In a second action, compare and modify other
structure parts, like Stored Procedures, and finally indexes.

Redgate is not for free, but reliable. All scripts it creates will be kept on
demand, and you can edit them, and run them separately.


Sometimes I also use dbmgr2k, which is a freeware. It does have also a GENERATE
SCRIPT function. Such a script can for example create a table. It can also create
"Insert Into" scripts, which are very useful to update some initialisation table
contents.

TS


Jarosław Kozik wrote:
Quote:
how to create script - update database development code using MSSQL 2000
Enterprise Manager

i'm trying in this way

all tasks -genetate sql script .... ( in this way I can generate only
CREATE Database SCRIPT ... )

[ IJKK]




  #4  
Old July 20th, 2008, 08:35 AM
Jaroslaw Kozik
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


I'v got two databases old and new one. I'm trying to generete diferential
script to update old databese structure to new database structure without
deleting existing data in old database

in this way I can only creata script which make new database
all tasks -genetate sql script .... ( CREATE Database SCRIPT ... )


Uzytkownik "Erland Sommarskog" <esquel@sommarskog.senapisal w wiadomosci
news:Xns9AE0EEDAFE62Yazorman@127.0.0.1...
Quote:
Jarosław Kozik (jkozik@op.pl) writes:
Quote:
>how to create script - update database development code using MSSQL 2000
>Enterprise Manager
>>
>i'm trying in this way
>>
> all tasks -genetate sql script .... ( in this way I can generate
>only CREATE Database SCRIPT ... )
>
I'm sorry, but I don't understand what you are trying to achieve. Could
you clarify?
>
>
--
Erland Sommarskog, SQL Server MVP, esquel@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
>

  #5  
Old July 20th, 2008, 08:15 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


Jaroslaw Kozik (jkozik@op.pl) writes:
Quote:
I'v got two databases old and new one. I'm trying to generete diferential
script to update old databese structure to new database structure without
deleting existing data in old database
>
in this way I can only creata script which make new database
all tasks -genetate sql script .... ( CREATE Database SCRIPT ... )
There is nothing built in, but there is very a popular third-party product
for the task. Go to http://www.red-gate.com and get a copy of SQL Compare.

--
Erland Sommarskog, SQL Server MVP, esquel@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
  #6  
Old July 20th, 2008, 09:35 PM
Jaroslaw Kozik
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


I'm trying SQL compare software and I can't generate differential script -
can I do it in this software
I see all difference between both databases but that's all


Uzytkownik "Erland Sommarskog" <esquel@sommarskog.senapisal w wiadomosci
news:Xns9AE1D7CB1251CYazorman@127.0.0.1...
Quote:
Jaroslaw Kozik (jkozik@op.pl) writes:
Quote:
>I'v got two databases old and new one. I'm trying to generete diferential
>script to update old databese structure to new database structure without
>deleting existing data in old database
>>
>in this way I can only creata script which make new database
>all tasks -genetate sql script .... ( CREATE Database SCRIPT ... )
>
There is nothing built in, but there is very a popular third-party product
for the task. Go to http://www.red-gate.com and get a copy of SQL Compare.
>
--
Erland Sommarskog, SQL Server MVP, esquel@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
>

  #7  
Old July 20th, 2008, 10:15 PM
Jaroslaw Kozik
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


I've got it ;) it's SQL Packager 5 - this software generate executable file
with differential script

Thank you very much

[IJKK]


  #8  
Old July 25th, 2008, 04:35 PM
dvdtknsn
Guest
 
Posts: n/a

re: ms sql 2000 - create update script


On Jul 20, 9:31*pm, "Jaroslaw Kozik" <jko...@op.plwrote:
Quote:
I'm trying SQL compare software and I can't generate differential script *-
can I do it in this software
I see all difference between both databases but that's all
>
Hi Jaroslaw,

In SQL Compare, if you click on the "Synchronize Wizard..." button in
the toolbar, click "Next", "Next", then "View SQL Script...", you
will be able to view the differential script.

Hope this helps,

David Atkinson
Red Gate Software
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client Web Browser & Remote SQL Script Error? Guy Debord answers 3 February 15th, 2006 11:35 PM
embedded SQL BillG_sd answers 0 November 22nd, 2005 08:27 AM
SQL using IF THEN ELSE Carl answers 8 November 13th, 2005 11:21 AM
embedded SQL BillG_sd answers 0 July 21st, 2005 01:26 PM
SQL Update Query Problem Tim Hinkel answers 1 July 20th, 2005 02:53 AM