中の技術日誌ブログ

C#とC++/CLIと
VBと.NETとWindowsで戯れる
 

目次

Blog 利用状況

ニュース

自己紹介

東京でソフトウェアエンジニアをやっています。
お仕事大募集中です。
記事執筆や、講師依頼とかでも何でもどうぞ(*^_^*)
似顔絵 MSMVPロゴ
MSMVP Visual C# Since 2004/04-2013/03

記事カテゴリ

書庫

日記カテゴリ

00-整理

01-MSMVP

SQL Server 2005 CTP Apr-2005でSQLCLRを有効にする

もう1度書いておきます。

SQLCLRのプロジェクトを作成して実行しても以下のようにメッセージが表示される場合は、SQLCLRが有効に成っていないので、有効にしてあげないといけません。

Execution of user code in the .NET Framework is disabled. Use sp_configure "clr enabled" to enable execution of user code in the .NET Framework.

実行するスクリプトは以下の通り

EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO

現在有効かどうかを確認するには

select value
from sys.configurations
where name like 'clr enabled'

を実行する

BOL(SQL Server Books Online)では

SQL Server 2005 Books Online
- SQL Server Programming Reference
  - Database Engine .NET Framework Programming
    - Introduction to Common Language Runtime (CLR) Integration
      - Enabling CLR Integration

に記述されている。

投稿日時 : 2005年5月5日 21:48

コメントを追加

No comments posted yet.
タイトル
名前
URL
コメント