Solved

compare 2 views from 2 different servers

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

839 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