SQL Server: OLE Automation Procedures

To make SQL Server possible to write information into files you must switch on “Ole Automation Procedures”

Please do the following steps to activate it

Step 1 — run the following command:

sp_configure 'show advanced options', 1

Step 2 — run the following command:

RECONFIGURE

Step 3 — run the following command:

sp_configure 'Ole Automation Procedures', 1

Step 4 — run the following command:

RECONFIGURE

Then run the following command and check that “Ole Automation Procedures” is switched to “1”

sp_configure
Чтобы разрешить SQL Server’у записывать информацию напрямую в файл вы должны включить опцию “Ole Automation Procedures”

Чтобы её активировать, проделайте следующее

Шаг 1 — выполните следующую команду:

sp_configure 'show advanced options', 1

Шаг 2 — выполните следующую команду:

RECONFIGURE

Шаг 3 — выполните следующую команду:

sp_configure 'Ole Automation Procedures', 1

Шаг 4 — выполните следующую команду:

RECONFIGURE

Затем выполните следующую команду и убедитесь, что “Ole Automation Procedures” изменилось на “1”

sp_configure
It is also possible you need to grant access to system stored procedures to iScala Users Group (Please run the following SQL query under administrative account. Please replace “SERVERNAME” with real name of your server) and «iScalaUsers» with real name of domain group:

 use master

 grant exec on sp_OACreate to [SERVERNAME\iScalaUsers]

 grant exec on sp_OAMethod to [SERVERNAME\iScalaUsers]

 grant exec on sp_OAGetErrorInfo to [SERVERNAME\iScalaUsers]

 grant exec on sp_OADestroy to [SERVERNAME\iScalaUsers]
Возможно также вам необходимо будет дать права на системные хранимые процедуры доменной группе iScala Users Group (Пожалуйста, выполните следующий SQL запрос под административной учётной записью. Замените “SERVERNAME” на реальное название сервера, а «iScalaUsers» на реальное название доменной группы):

 use master

 grant exec on sp_OACreate to [SERVERNAME\iScalaUsers]

 grant exec on sp_OAMethod to [SERVERNAME\iScalaUsers]

 grant exec on sp_OAGetErrorInfo to [SERVERNAME\iScalaUsers]

 grant exec on sp_OADestroy to [SERVERNAME\iScalaUsers]
If you have any questions, do not hesitate to ask:

    Your Name (mandatory)

    Your e-mail (mandatory)

    Subject

    Message

    Other procedures and articles in English:
    Список опубликованных процедур: