SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Linked Server and Stored Procedures
 New Topic  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

15730 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
22712 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  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000