I've been following this article here:
http://blogs.msdn.com/b/sqlcat/archive/2011/03/08/linked-servers-to-sql-azure.aspx
on how to setup a Linked Server from SQL Server 2008 R2 to an SQL Azure instance. I am using SQL Native Client 10.0 as the ODBC driver and judging by the default databases that are shown the connection is valid; however when I attempt to establish a linked server as the above article suggests; I get the following error:
OLE DB provider "MSDASQL" for linked server "Azure_Test" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
Now I've seen a few forum posts (Nothing conclusive unfortunately) suggesting it may be a 64bit issue. Has anyone successfully setup a Linked Server to SQL Azure from a local instance?
EDIT: Davids answer was indeed correct; just thought I'd share this awesomeness I found you can do now with a linked server:
DELETE OPENQUERY (AzureTest,
'SELECT * FROM [AzureDB].static.MyTable');
INSERT OPENQUERY (AzureTest,
'SELECT * FROM [AzureDB].static.MyTable')
SELECT *
FROM static.MyTable
SELECT * FROM OPENQUERY(AzureTest, 'SELECT * FROM [AzureDB].static.MyTable')
SELECT * FROM Azure_ODBC1...
connection however OpenQuery worked for all tables:SELECT * FROM OPENQUERY(Azure_ODBC1, 'SELECT * FROM dbo.MyTable')
– Panther