0

I have sharding in SQL Azure.

Basically my structure is like below:
1. Master Database
2. Shard0
3. Shard1

I store all non sharded client into master database but on special request from client, i create seperate shard from them.

While reporting sometimes i need to access master database data from say Shard0.

I have followed all articles available on internet like https://azure.microsoft.com/en-in/documentation/articles/sql-database-elastic-query-vertical-partitioning/

but somehow the [database].[dbo].[tablename] query is not working.

I am using SQL v12 in azure.

2
  • Even I have tried this scarydba.com/2016/03/21/… Commented Sep 7, 2016 at 10:50
  • The above link is working because it has different table names in different database while in my scenario have same set of tables in master, shard0, shard1... shardn. So when i try to create external table in shard0 it will says that object is already exists because the table name are same and it is present in each database. Commented Sep 7, 2016 at 10:51

1 Answer 1

2

You cannot use three part name syntax like above to refer to an external table. You query an external table as if it were a normal local table, i.e., use [schema_name].[external_table_name].

Hope this helps.

Thanks, Torsten

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.