Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

what is cross server query Expand / Collapse
Author
Message
Posted Sunday, January 3, 2010 10:25 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Sunday, January 3, 2010 10:23 PM
Points: 12, Visits: 6
Hi,Good day
anybody can provide me the details like
a) what is cross server query
b) how we can impliment cross server query

Have a ncie day

Thanks & regards
rclgoriparthi
Post #841299
Posted Sunday, January 3, 2010 11:17 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 2:39 AM
Points: 1,904, Visits: 2,846
Hi, read up on it first:

http://www.lazydba.com/sql/1__1624.html
http://sql-server-performance.com/Community/forums/p/4085/27763.aspx#27763
http://www.principiaprogramatica.com/?p=5

Basically, you are querying between 2 different instances, or 2 different SQL servers.


----------------------------------------------
Msg 8134, Level 16, State 1, Line 1
Divide by zero error encountered.
Post #841309
Posted Tuesday, September 10, 2013 3:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, April 10, 2014 3:46 AM
Points: 6, Visits: 178
...
Post #1493074
Posted Tuesday, September 10, 2013 3:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 10:46 AM
Points: 13,622, Visits: 10,513
alekya.kondam (9/10/2013)
HI ,


select * INTO Test FROM
(
select ROW_NUMBER()over(partition by customer order by customer) as counts ,customer,Contract
from tablename
) A where counts > 1

Select * from tablename where customer IN(SELECT customer from Test )



Hope it helps


I guess you posted in the wrong thread, because this has nothing to do with cross server querying.
Not to mention this thread ended over 3 years ago...




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1493075
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse