This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9720|Reply: 0

[Solved] SQL Server blocked the process 'sys.sp_OACreate' for the component 'Ole Automation Procedures'...

[Copy link]
Posted on 3/20/2015 3:25:12 PM | | |
Interest 15281, Level 16, State 1, Process sp_OACreate, Line 1
SQL Server blocked access to the procedure 'sys.sp_OACreate' of the component 'Ole Automation Procedures' because this component was shut down as part of the security configuration for this server. System administrators can enable 'Ole Automation Procedures' by using sp_configure. For more information about enabling Ole Automation Procedures, see Peripheral Application Configurator in the SQL Server Online Books series.
Msg 15281, Level 16, Status 1, Procedure sp_OAMethod, Line 1
SQL Server blocked access to the procedure 'sys.sp_OAMethod' of the component 'Ole Automation Procedures' because this component was shut down as part of the security configuration for this server. System administrators can enable 'Ole Automation Procedures' by using sp_configure. For more information about enabling Ole Automation Procedures, see Peripheral Application Configurator in the SQL Server Online Books series.



Solution:


  1. --开启xp_cmdshell
  2. --SQL Server blocked access to procedure 'xp_cmdshell'
  3. sp_configure 'show advanced options', 1
  4. go
  5. reconfigure
  6. go
  7. sp_configure 'xp_cmdshell', 1
  8. go
  9. reconfigure
  10. go

  11. --开启sp_OACreate
  12. --SQL Server blocked access to procedure 'sys.sp_OACreate'
  13. sp_configure 'show advanced options', 1;
  14. go
  15. reconfigure;
  16. go
  17. sp_configure 'ole automation procedures', 1;
  18. go
  19. reconfigure;
  20. go


  21. sp_configure 'Ad Hoc Distributed Queries',1;
  22. go
  23. reconfigure
  24. go
Copy code





Previous:Microsoft wants to win back a game with Win10: trying to win over Chinese manufacturers
Next:Definitions and references to oracle stored procedures
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com