Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7954315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:23:34+00:00 2026-06-04T03:23:34+00:00

SQL Azure give you an option to setup federated SQL servers – e.g. essentially

  • 0

SQL Azure give you an option to setup federated SQL servers – e.g. essentially partition your data across multiple servers by some key. However, when you run select * from order, it puts all the data back together for you and the entire process is transparent to your app.

Now, let’s say I have a stored procedure that makes liberal use of temp tables. So in a situation like this:

-- query uses data from each partitioned server
select tbl1.Column1, tbl2.Column2
into #tmpTable
from tbl1
join tbl2.id = tbl1.id
where tbl2.Column3 = '234'

-- also uses data from each partitioned server
select #tmpTable.*
from tbl3
join tbl3.fkey = #tmpTable.Column1

In this scenario, does the data flow each time from one server to the main one? Where is the temp table actually stored? All on the main box, or split up between federated ones?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:23:35+00:00Added an answer on June 4, 2026 at 3:23 am

    Avkash is correct. A federation is split into federation members, which is a collection of databases that share nothing. When you run a statement like SELECT * FROM Order, assuming the Order table has been federated, the records being returned vary depending on which federation member you use.

    The USE FEDERATION command allows you to switch federation member without disconnecting/reconnecting. Your code needs to know the list of federation members and loop through each member to fetch all the records; one federation member at a time. Then on the client code, you aggregate all the recordsets to create a single data set that your application can use. You can craft your code to perform all these requests in parallel.

    You can see how to implement this using a library I posted on codeplex. It’s called the Enzo Shard Library. You need to download the BETA version, which contains the code for Federations. The code will allow you to fetch all records across federation members using multiple threads for optimum performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sql Azure allows to copy databases both within one instance and across multiple instances
Is there a way to to get notifications when SQL Azure data changes or
SQL Azure seems pretty cool. Some things are not available in SQL Azure though.
I've written a report that extracts the data from SQL Azure storage. Looks like
I'm looking for some guidance on whether SQL Azure is a suitable platform for
Greetings, Windows Azure only supports SQL Azure Session State for multiple instances. I'm thinking
I need to delete some SQL Azure database entries, and I'm not sure if
SQL Server is SQL Azure, basically it's SQL Server 2008 for normal process. I
I'm trying to connecting SQL Azure from my android application. The code is working
I am querying through linq to a SQL Azure database. When a new company

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.