codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  replication  sardinka at 20:09 on Wednesday, January 12, 2005
 

I need to compare tables data between SQL servers and if data is different move the data. Does some one has an example how to do this?

  Re: replication  tgreer at 15:16 on Thursday, January 13, 2005
 

This could be hugely complicated. Can you narrow the question down to specifics? I assume since you're posting in the ASP.NET forum, that you want to do this online, using ADO.NET.

Can you already connect to each server? Can you perform the propery queries? Are the table structures exactly the same?



  Re: replication  sardinka at 16:38 on Friday, January 14, 2005
 

I need to compare to data sets wchich are represents 2 tables (same name) from different server.

  Re: replication  tgreer at 16:55 on Friday, January 14, 2005
 

Still not specific enough.

Do you know how to build the datasets already?

Do you have a working ASP.NET program, or not?

How far along is the program?

Can you connect to the two servers, yes or no?

Can you query the two databases, yes or no?

Can you load the results of the query into a dataset, yes or no?

What is the structure of your dataset? Why are you using a dataset for a single table? I suggest using a SqlDataReader, to process the results into an ArrayList. Then compare the two ArrayLists with a for loop.












CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  How to dynamically create a calendar when I click a button?
•  c++ tutorials
•  Update a second table
•  Trackin Site behaviour
•  variable scope problem
•  dynamic crystal report generation
•  execute an Excel macro when the sheet is changed from ASP.NET
•  Re: form
•  form


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005