Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Linked Server and Stored Procedures
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 05/10/2006 :  08:17:37  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Dan writes "First off, thanks for all the good work you guys have been doing. I read almost all of what you write and it has helped me become a better DBA. On that note...

I have 8 linked sql servers which contain the same table sturcture's etc... Just splitting up millions of records for faster performance. Now I need to match up 'reversed' records(one claim comes in... then later that claim is rejected, need to pull the original claim out) and remove them from the active tables. So i need to search thru all 8 server blades looking for them... Is it possible to write a stored proc to dynamically search thru all the blades thru linked server? Do i concatenate the full server path? server.database.owner.tablename?"

Most Valuable Yak

15732 Posts

Posted - 05/10/2006 :  08:21:01  Show Profile  Visit robvolk's Homepage  Reply with Quote
I personally wouldn't use a linked server for this, although I'm sure it's possible to do so. I would export the reversed claim IDs to a text file, then have a scheduled job on each server import that file and delete claims that match those IDs. It should be pretty fast with bcp and/or BULK INSERT and you avoid having to do cross-server joins, which I've always found to be slow.
Go to Top of Page


United Kingdom
22859 Posts

Posted - 05/10/2006 :  08:48:40  Show Profile  Reply with Quote
Horizontal Federated Partitioned Views thingamajig that can efficiently query all the tables in one strike?

The various table-copies would need to have different constraints on their PK for this to work ...

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2019 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000