Rumah > pangkalan data > tutorial mysql > SQLServer添加链接服务器

SQLServer添加链接服务器

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Lepaskan: 2016-06-07 14:57:07
asal
1800 orang telah melayarinya

无详细内容 无 --启用Ad Hoc Distributed Queries:exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure --关闭Ad Hoc Distributed Queries:exec sp_configure 'Ad Hoc Distributed Que

SQLServer添加链接服务器 SQLServer添加链接服务器
--启用Ad Hoc Distributed Queries:
exec sp_configure 'show advanced options',1 
reconfigure 
exec sp_configure 'Ad Hoc Distributed Queries',1 
reconfigure 
    

--关闭Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0 
reconfigure 
exec sp_configure 'show advanced options',0 
reconfigure

--添加服务
exec   sp_addlinkedserver  '服务器服务名','','SQLOLEDB','服务器服务名'
--添加登陆
exec   sp_addlinkedsrvlogin '服务器服务名','false',null,'sa','密码'

---启动存储过程
exec sp_serveroption '服务器服务名','rpc out','true'

--删除服务和登陆
exec sp_dropserver '服务器服务名','droplogins'


Select * From sys.servers


Select  top 1 * From [服务器服务名].[master].sys.databases

Salin selepas log masuk
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Isu terkini
Laporan ralat pautan PHP 7.2.10 SQLserver2008r2
daripada 1970-01-01 08:00:00
0
0
0
SQLSTATE: Log masuk pengguna gagal
daripada 1970-01-01 08:00:00
0
0
0
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan