Just a quick note on how to set SQL Azure on your local SQL Server as Linked Server.
EXEC sp_addlinkedserver
@server='LinkServerName',
@srvproduct='',
@provider='sqlncli',
@datasrc='ServerName.database.windows.net',
@location='',
@provstr='',
@catalog='DatabaseName'
EXEC sp_addlinkedsrvlogin
@rmtsrvname='LinkServerName',
@useself='false',
@rmtuser='username@ServerName.database.windows.net',
@rmtpassword='Password'
EXEC sp_serveroption 'LinkServerName', 'rpc out', true;
I added user@ServerName because I kept on getting error from SQL Azure.
Server name cannot be determined. It must appear as the first segment of the server's dns name (servername.database.windows.net). Some libraries do not send the server name, in which case the server name must be included as part of the user name (username@servername). In addition, if both formats are used, the server names must match.
EXEC sp_addlinkedserver
@server='LinkServerName',
@srvproduct='',
@provider='sqlncli',
@datasrc='ServerName.database.windows.net',
@location='',
@provstr='',
@catalog='DatabaseName'
EXEC sp_addlinkedsrvlogin
@rmtsrvname='LinkServerName',
@useself='false',
@rmtuser='username@ServerName.database.windows.net',
@rmtpassword='Password'
EXEC sp_serveroption 'LinkServerName', 'rpc out', true;
I added user@ServerName because I kept on getting error from SQL Azure.
Server name cannot be determined. It must appear as the first segment of the server's dns name (servername.database.windows.net). Some libraries do not send the server name, in which case the server name must be included as part of the user name (username@servername). In addition, if both formats are used, the server names must match.
Thanks, this helped me out.
ReplyDeleteBless you
ReplyDeleteThanks for this, it helped me out too.
ReplyDeleteNeeded to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here Thank you. Your blog was very helpful and efficient For Me,Thanks for Sharing the information Regards..!!..Azure Online Training Bangalore
ReplyDeleteworld777 betting
ReplyDelete1 bhk flat in ajmer road jaipur
best coaching classes for class 9 in gurgaon
palazzo kurti set online
azure sentinel
azure databricks
azure data lake
azure expressroute
azure application gateway
Smm Panel
ReplyDeletesmm panel
İŞ İLANLARI
İnstagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
Servis
TİKTOK JETON HİLE
Cryptocurrency App Development Company
ReplyDeleteis a subset of digital currency designed
to serve as an exchange mechanism for secure online transactions via cryptography. Bitcoin is the world's first decentralized record currency. It has been a huge success, with a good response from the global community. It has prepared the path for the emergence of new cryptocurrencies. These digital currencies are also known as Bitcoin forks.
With our easy-to-use and cleverpaxful clone script development, Omninos gives you the ability to trade from anywhere at any time. We've created a useful app for both Android and iOS that meets your requirements. Our talented programmers produce user-friendly apps that facilitate global commerce and attract a significant number of new traders.
ReplyDeletesupportfly
ReplyDeleteleasepacket