2012年7月25日 星期三

VB .NET SQL連線(2)-使用(Using)

        Dim cnStr As String =
          "Data Source=.;Initial Catalog=Northwind;Integrated Security=true"
      
        Using cn As New SqlConnection(cnStr)
           
            cn.Open()
       
            Response.Write("OK")
           
        End Using
       
      

標籤: ,

0 個意見:

張貼留言

訂閱 張貼留言 [Atom]

<< 首頁