zoukankan      html  css  js  c++  java
  • SQL.CLR

    1 create a CLR User-defined function.

    (1) create a Database -- SQL Server Project; Add a new item(User-defined function); Wirte a helloword function

    Udf helloworld

    (2) build the project. get the relative assembly(*.dll)

    (3) Open the SSMS. Select one database, expand the menu, get the "Assemblies" node, right click, "New assembly", import the previoud assembly. set the other options if possible.

    (4) Create one SQL Function, which call the udf in the assembly

    Sql function

    (5) Use the created function

    call the udf
  • 相关阅读:
    DFS染色解决区域分块问题UVALive 6663
    栈之逆波兰
    线段树总结
    区间合并问题
    线段树的开闭区间问题
    离散化
    线段树的学习过程
    BFS的小结
    状态数组哪家强
    卡特兰数。
  • 原文地址:https://www.cnblogs.com/yang_sy/p/1403116.html
Copyright © 2011-2022 走看看