ã¢ããã㯠ã¢ã¯ã»ã¹ãæå¦ããã¾ããã
SQLServer2005ã§ãOPENROWSETé¢æ°ã使ç¨ãã¦ãSQLServerããOracleãã¼ã¿ãã¼ã¹ã«ã¢ãããã¯ã¯ã¨ãªãå®è¡æã«ãä¸è¨ã¨ã©ã¼ãçºçã
7415 - OLE DB ãããã¤ã '%ls' ã¸ã®ã¢ããã㯠ã¢ã¯ã»ã¹ãæå¦ããã¾ããããªã³ã¯ ãµã¼ãã¼ã使ç¨ãã¦ãã®ãããã¤ãã«ã¢ã¯ã»ã¹ãã¦ãã ããã
ã¡ãªã¿ã«ãã®æã®ç¶æ³ã¨ãã¦ã¯ãããªæã
- èªè¨¼ã¢ã¼ãã¯SQL Serverèªè¨¼
- ãã°ã¤ã³ã¦ã¼ã¶ã¯sysadmin権éãªã©ã¨ãã£ãå¼·ããã¼ã«ã»æ¨©éã¯ãªããï¼ããããdb_ownerãã¼ã«ãããï¼
MSDNã«ããã£ã¦ã¿ãã¨ãå¿ è¦ãªè¦ä»¶ã¯2ã¤ã®ããã
- Ad Hoc Distributed Queries 詳細æ§æãªãã·ã§ã³ãæå¹
- DisallowAdhocAccess ã¬ã¸ã¹ã㪠ãªãã·ã§ã³ãæ示çã« 0 ã«è¨å®
ãã®ãã¡ã2.ã«ã¤ãã¦ã¯æ§æããã¼ã¸ã£ãsp_configureãããOLE DB ãããã¤ãã¸ã®ã¢ããã㯠ã¢ã¯ã»ã¹ãæå¹ã«ãã¦ããã
EXEC sp_configure 'Ad Hoc Distributed Queries', '1'
GO
RECONFIGURE
GO
ããä¸ã¤ã1.ã«ã¤ãã¦ã¯SQLServerã¤ã³ã¹ã¿ã³ã¹ã®ã¬ã¸ã¹ããªãç·¨é
SP2 以後 OPENROWSET でアドホックなアクセス不可
âMSDNã§ã¯è¦ã¤ããããã
ã¬ã¸ã¹ããªç·¨éå¾ã¯ã¤ã³ã¹ã¿ã³ã¹ã®åèµ·åãå¿
è¦ã
ãããã«ãã¦ã2ã¯çµ¶å¯¾ã«å¿
è¦ãªè¨å®å
容ã
ä¸æ¹ã®1ã«ã¤ãã¦ã¯ä»£æ¿æ¹æ³ãããããã ã
ããã¯ããã°ã¤ã³ã¢ã«ã¦ã³ãã«sysadminãµã¼ããã¼ã«ãä»ä¸ãã¦ããã°ã¬ã¸ã¹ãã¨ã³ããªã¯å¿
è¦ãªããã¨ãããã®ã
ã¬ã¸ã¹ããªã¨ã³ããªãããããã¨ããã©ã¹ãã¤ã³ã¹ã¿ã³ã¹ã®åèµ·åãããã¼ã ã¨ããå ´åã®ä»£æ¿ã¨ãã¦ãããããã¯ã³ã·ã§ããåçºã§å®è¡ããå ´åãã