数据库连接字符串大全

日期:2007年8月8日 作者: 查看:[大字体 中字体 小字体]
  •  Context Connection - connecting to "self" from within your CLR stored prodedure/function

    •  C#:
      using(SqlConnection connection = new SqlConnection("context connection=true"))
      {
          connection.Open();
          // Use the connection
      }


    •  Visual Basic:
      Using connection as new SqlConnection("context connection=true")
          connection.Open()
          ' Use the connection
      End Using


      The context connection lets you execute Transact-SQL statements in the same context (connection) that your code was invoked in the first place.
  •  Read more

  • 精品推荐

    热点TOP10

    特别推荐