Getting started with clrsql

Source: Internet
Author: User
Tags sql server query

After SQL Server 2005 is released, you can compile the. NET files that can run in SQL Server.Code. Same as IIS, SQL Server 2005 is also. netProgram.
First install sqlserver2005 and Visual Studio 2005. When sqlserver2005 CLR is enabled, the SQL Server Query analyzer should first execute the following statement according to the actual situation.

Exec Sp_configure ' CLR Enabled ' -- View status
Exec Sp_configure ' CLR Enabled ' , 1 -- 1. Enable CLR \ 0 and disable CLR
Reconfigure   With Override -- Follow the prompts (the configuration option 'clr enabled' has been changed from 0 to 1. Run the reconfigure statement for installation .) Run this sentence

You can use Visual Studio 2005 directly for quick development.

During debugging, although sqlserver2005 is used, the default database is still 8.0, and sp_dbcmptlevel 'corp _ 100', 90

Otherwise, there will be a syntax error near Error 1 'external. You may need to set the compatibility level of the current database to a higher value to enable this function. For information about sp_dbcmptlevel, see help. Clr_prgetdocnocom
And:
The CLR function exec sp_configure 'show advanced options', 1 must be enabled.
Go
Reconfigure
Go

Exec sp_configure 'clr enabled', 1
Go
Reconfigure

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.