SQL Command
Dim cnStr As String =
"Data Source=.;Initial Catalog=Northwind;Integrated Security=true"
Dim cn As New SqlConnection(cnStr)
Dim cmd As New SqlCommand()
cmd.Connection = cn
cmd.CommandText = "insert into region values(5,'aaaaa')"
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
Response.Write("OK")
"Data Source=.;Initial Catalog=Northwind;Integrated Security=true"
Dim cn As New SqlConnection(cnStr)
Dim cmd As New SqlCommand()
cmd.Connection = cn
cmd.CommandText = "insert into region values(5,'aaaaa')"
cn.Open()
cmd.ExecuteNonQuery()
cn.Close()
Response.Write("OK")
標籤: SQL
0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁