﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Релиб / Программирование / .NET  / COM в хранимой процедуре CLR / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Релиб</description><link>http://www.relib.com/forums/</link><webMaster>robot@relib.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 16:59:38 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: COM в хранимой процедуре CLR</title><link>http://www.relib.com/forums/Topic914931-16-1.aspx</link><description>Спасибо, дело было в этом. &lt;/P&gt;&lt;P&gt;Поставил базе  TRUSTWORTHY on, у ASSEMBLY PERMISSION_SET=UNSAFE и теперь всё ок.</description><pubDate>Wed, 25 Jul 2007 09:48:24 GMT</pubDate><dc:creator>CepbIu</dc:creator></item><item><title>RE: COM в хранимой процедуре CLR</title><link>http://www.relib.com/forums/Topic914931-16-1.aspx</link><description>Похоже тебе надо было при подключении сборки к Sql2005 (CREATE ASSEMBLY) указать WITH PERMISSION_SET=UNSAFE.</description><pubDate>Tue, 24 Jul 2007 18:04:54 GMT</pubDate><dc:creator>bazile</dc:creator></item><item><title>COM в хранимой процедуре CLR</title><link>http://www.relib.com/forums/Topic914931-16-1.aspx</link><description>Есть MS SQL 2005. Нужно написать хранимую процедуру CLR в которой будет вызываться COM объект. Возможно это?&lt;P&gt;Если в ней написать что то типа &lt;FONT size=2&gt;o = CreateObject(".."&lt;/FONT&gt;&lt;FONT size=2&gt;) и вызвать на серваке, то возникает ошибка:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;FONT size=1&gt;&lt;P&gt;Msg 6522, Level 16, State 1, Procedure StoredProcedure1, Line 0&lt;/P&gt;&lt;P&gt;A .NET Framework error occurred during execution of user defined routine or aggregate 'StoredProcedure1': &lt;/P&gt;&lt;P&gt;System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host.&lt;/P&gt;&lt;P&gt;The protected resources (only available with full trust) were: All&lt;/P&gt;&lt;P&gt;The demanded resources were: Synchronization, ExternalThreading&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;[/code]</description><pubDate>Tue, 24 Jul 2007 17:42:48 GMT</pubDate><dc:creator>CepbIu</dc:creator></item></channel></rss>