Database Synchronization the easy way
http://www.csharpfriends.com
World's Greatest C# Community    
Home Articles C# Forums Books C# Syntax C# Spec C# Jobs free Source Code Advertise About
 

Control Panel

[ Sign In / register ]
Points   
Notes 
My Forums
My Tutorials
My Profile

Resources

Learn
 Articles
 QuickStarts
 C# Spec
 Whitepapers
 Tools
 Class Browser
 C# Code Generator
 Links
 Misc Rss Feeds
 Code Highlight
 411 Directory
 FREE magazines
 freevb.net

Reviews
  ASP.NET Hosting

Source Code
 Get Version 1.0



C# Consulting
AspDotNetStoreFront
Chapter:   UnCategorized
Current Lesson:
Database Synchronization the easy way
[Latest Content]
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ALL
[prev. Lesson]  Hacking Visual Studios [next Lesson]  Conditional Attribute in C# compared to #if #endif
Database Synchronization the easy way
  by: webmaster

So you are designing a web application and you finally get to version 1.0 and deploy it to your server. As with most projects, you’re not anywhere close to being completely done now are you? One of the most dreaded tasks of any developer is updated your applications SQL tables and stored procedures on your live server to get it up to speed with the latest build. Not only is it a frustrating to create these scripts, once deployed the threat of bugs in your script can haunt you (ok haunt maybe be slightly exaggerating the feeling). Did I do it properly, is the phone going to go off with angry clients complaining about features that were working and now aren’t?

SQL Compare


Well lucky for me (an you?), I ran across SQL Compare. I believe the first time I saw this application was browsing through some web applications SQL scripts. I am currently using this application extensively whilst developing my ad server application IdealAdServer

The beauty of having this application is that I am no longer weary of making changes to my application. I know that once I am done developing new features, its as simple as firing up SQL Compare and running it on my product server and within a few seconds my databases tables, stored procedures etc. will be updated to the latest build.

How does it work? For starters, I fire up the application and enter my source and destination databases.


I then start the comparison process and I am soon presented with a screen that tells me exactly which objects in my database have changed, along with a side-by-side comparison of exactly what changes where made to e.g. the table or stored procedure.

From the above image it’s fairly clear how simple this application is to use. I have the option of choosing exactly which objects I want to update on the source database. Below is nice screenshot that gives you an idea of what sort of other options are available to you during the update process.

So you have chose exactly what objects you want to update on your live server, once this is done you simply press the synchronize button and SQL Compare will begin the update process. Once it has completed with the synchronization, it will run another comparison automatically to show you that the changes where made successfully. If you don’t want the software to do the updates for you, you will be glad to know that SQL Compare generates the SQL syntax for you so you can simply cut and paste the SQL and run it manually yourself or use it in any other way you please.

The Verdict

SQL Compare is a great tool for any developer that uses databases extensively. It eases the deployment process of your applications and can really improve developer productivity.

For more information (free trial available), check out SQL Compare at http://www.red-gate.com/SQL_Compare.htm

1 


Build Your Own ASP.NET Website Using C# & VB.NET

Chapter:  UnCategorized
Current Lesson:
Database Synchronization the easy way
[Latest Content]
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ALL
[prev. Lesson]  Hacking Visual Studios [next Lesson]  Conditional Attribute in C# compared to #if #endif


Today's Top Movers
vulpes 6800
MadHatter 2220
jal 867
Jeff1203 857
muster 791

Yesterday Top Movers
shakti sin.. 9
MadHatter 3
C#fanatic 2
Al_Pennywo.. 2
simboy 1

Monthly Leaders
vulpes 6800
MadHatter 2260
jal 867
Jeff1203 857
muster 791

Top Members
mosessaur 18457
Rincewind 7074
stanleytan 6995
vulpes 6800
Gsuttie 6046

Great Offers
.net hosting
Go To My Pc
Remote Pc Control
zonealarm
spam blocker
web hosting directory
ad server   C#
snadtech GoToMyPc

Top of Page

Advertise | About | Link To Us | Privacy Notice Copyright © 2003 - 2005 CSharpFriends.com  All Rights Reserved  Visual C# Developer Center