Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

compare 2 views from 2 different servers

Posted on 2007-03-20
5
Medium Priority
?
316 Views
Last Modified: 2010-03-19
is there an easy way to compare two views with the same name from 2 different servers?
0
Comment
Question by:wala_lang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 42

Expert Comment

by:dqmq
ID: 18762167
Do you mean compare the views' coding or the compare the data returned by the views?
0
 

Author Comment

by:wala_lang
ID: 18762285
coding
0
 

Accepted Solution

by:
wala_lang earned 0 total points
ID: 18769232
found a solution, if anyone is interested here's the script that i used:

select sysobjects.name, syscomments.text as Prod, b.text as Centauri,
CASE WHEN syscomments.text = b.text THEN 'the same'
    else 'different' END [Compare]
from sysobjects
inner join syscomments on sysobjects.id = syscomments.id
inner join [centauri].EducationQueensland.dbo.sysobjects a on sysobjects.name = a.name
inner join [centauri].EducationQueensland.dbo.syscomments b on a.id = b.id
where sysobjects.xtype = 'V' and sysobjects.category = 0
order by sysobjects.name
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question