---
title: "Discussion on \"SQL Server 2005+ 使用 CLR 来分割字符串\" | Hashnode"
description: "Discussion on \"SQL Server 2005+ 使用 CLR 来分割字符串\". 前两天我发了一个使用 CTE 分割字符串的方法，效率虽然比旧的 CHARINDEX 高一些，但是比起 CLR 速度还是差了很多，今天我就发下使用 CLR 来分割字符串的方法\npublic class UserFunction \n\n{ \n\n     \\[SqlFunction(Name = \"CLR\\_SplitStringToIntTable\", TableDefinition = \"Id INT\", FillRowMethodName = \"FillRow\")\\] \n\n     public ..."
url: "https://hashnode.com/posts/sql-server-2005-clr/628d95e8bc26026fa45c55d1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SQL Server 2005+ 使用 CLR 来分割字符串](https://www.topzs.com/sql-server-2005-clr?utm_source=hashnode&utm_medium=feed)

前两天我发了一个使用 CTE 分割字符串的方法，效率虽然比旧的 CHARINDEX 高一些，但是比起 CLR 速度还是差了很多，今天我就发下使用 CLR 来分割字符串的方法 public class UserFunction { \\\[SqlFunction(Name = "CLR\\\_SplitStringToIntTable", TableDefinition = "Id INT", FillRowMethodName = "FillRow")\\\] public ...

Dec 12, 2010 · 1 min read · topzs.com  
Read the article

## Written by

[Topaz](https://hashnode.com/@tangchang)

@tangchang

  
[View profile](https://hashnode.com/@tangchang)

Front-end development

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
