自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

SQL Server 阻止 \'Ad Hoc Distributed Queries\' ?

數(shù)據(jù)庫 SQL Server
以下的文章主要描述的是SQL Server 阻止對組件 \'Ad Hoc Distributed Queries\' 的錯誤訪問,以下就是文章的主要內(nèi)容講述。

以下的文章主要描述的是SQL Server 阻止對組件 \'Ad Hoc Distributed Queries\' 的錯誤訪問,在實際操作中如果你想用openrowset 來對遠(yuǎn)程數(shù)據(jù)庫進行查詢,其結(jié)果提示SQL Server 阻止了對組件 \'Ad Hoc Distributed Queries\' 的訪問錯誤,在網(wǎng)上搜索了一下,找到解決方法:?

 

啟用Ad Hoc Distributed Queries:

  1. exec sp_configure 'show advanced options',1   
  2. reconfigure   
  3. exec sp_configure 'Ad Hoc Distributed Queries',1   
  4. reconfigure  

 

使用完成后,關(guān)閉Ad Hoc Distributed Queries:

 

  1. exec sp_configure 'Ad Hoc Distributed Queries',0   
  2. reconfigure   
  3. exec sp_configure 'show advanced options',0   
  4. reconfigure   
  5. SELECT *   
  6. FROM OPENDATASOURCE(   
  7. 'SQLOLEDB',   
  8. 'Data Source=ServerName;User ID=sa;Password=sa'   
  9. ).DataBaseName.dbo.Table   
  10. select * from openrowset( 'SQLOLEDB ', 'IP地址'; '用戶名'; '密碼',數(shù)據(jù)庫名.dbo.表名)   

 

以上的相關(guān)內(nèi)容就是對SQL Server 阻止了對組件 \'Ad Hoc Distributed Queries\' 的訪問錯誤的介紹,望你能有所收獲。

 


上述的相關(guān)內(nèi)容就是對SQL Server 阻止了對組件 \'Ad Hoc Distributed Queries\' 的訪問錯誤的描述,希望會給你帶來一些幫助在此方面。

【編輯推薦】

  1. SQL Server 2005缺失索引的找回方案
  2. SQL Server XML 入門的18句話
  3. SQL Server附加數(shù)據(jù)庫出錯的破解方案
  4. SQL Server 2005報告服務(wù)架構(gòu)的正確剖析
  5. SQL Server拆分字符串的3常用種方法
責(zé)任編輯:佚名 來源: 清華大學(xué)出版社
相關(guān)推薦

2011-08-11 14:53:21

Ad Hoc DistSQL Server數(shù)

2010-06-17 17:16:29

Ad Hoc路由協(xié)議

2011-08-03 10:30:15

Linuxad-hocWifi

2009-11-18 09:33:24

2010-06-19 14:03:20

2010-08-13 09:25:52

路由協(xié)議AODV

2010-03-18 16:20:53

2010-06-17 17:27:35

路由協(xié)議

2010-03-18 16:28:24

無線Ad-hoc網(wǎng)絡(luò)

2010-03-18 16:08:53

無線Ad-hoc網(wǎng)絡(luò)

2012-04-26 13:48:56

iPhone應(yīng)用發(fā)布Ad Hoc

2010-03-18 16:54:14

無線Ad-hoc網(wǎng)絡(luò)

2010-03-18 16:39:49

2011-08-17 13:48:50

無線局域網(wǎng)

2011-10-24 15:31:17

2010-08-13 15:31:47

Exchange Se

2011-08-30 16:34:51

SQL Server 阻止保存要求重新創(chuàng)建表

2009-06-29 10:18:01

Windows Ser操作系統(tǒng)AD

2013-03-28 10:05:17

Windows SerAD虛擬化虛擬化安全

2010-07-23 12:55:29

SQL Server
點贊
收藏

51CTO技術(shù)棧公眾號