Solved

compare 2 views from 2 different servers

Posted on 2007-03-20
5
312 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

735 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