Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

linked server to connect to azure sql database

$
0
0
Hi friends,

i Need some small help on azure sql.

I am trying to create the linked server which is used to pull the data from AZURE SQL.

i have used the below query to created the linked server..

but it is throwing in the error.

shall you please any one let me know who to  create a linked server.

--- Create DNS as well..

i want to know, what are all the setting we have to change in the SYSTEM DNS to 

EXEC master.dbo.sp_addlinkedserver
@server = N'Azure_ODBC1',
@srvproduct=N'Any', 
@provider=N'MSDASQL',---'MSDASQL', 
@datasrc=N'myazuredb'
--,@catalog='myDatabase' 
GO

 /* For security reasons the linked server remote logins password is changed to ######## */
EXEC master.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N'Azure_ODBC1'
,@useself=N'False'
,@locallogin=NULL
,@rmtuser=N'myazuredb'
,@rmtpassword='4'


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>