Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different server
Message
 
 
À
12/07/2000 17:26:13
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00391550
Message ID:
00391573
Vues:
8
>Hi All,
>I have 2 servers Name "ASHI" and "JAIN". both have same database name "ORS". I want to find out how many records different in a table name "app". what is the sql query to find out the number of records different in this table. Any Clue???
>
>Thanx,
>....ashish

SQL Server tables are identified by Server.Owner.Table. What determines if records are different?

The following will check for records that do not exist in JAIN but do exist in ASHI:
select appjain.* from jain.dbo.app appjain where appjain.key not in (select appashi.key from ashi.dbo.app)
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform