|
楼主 |
发表于 2013-3-9 19:52:19
|
显示全部楼层
本帖最后由 静静 于 2013-3-9 19:58 编辑
Public Sub sqlUserInfo(ByVal UID As String, ByVal UName As String, ByVal UInfo As String)
'
Dim Conn As New SqlConnection(connStr)
If Conn.State <> ConnectionState.Open Then
Conn.Open()
End If
'
Dim Cmd As New SqlCommand
Try
Cmd.Connection = Conn
Cmd.CommandType = CommandType.StoredProcedure
Cmd.CommandText = "userInfo"
'
Cmd.Parameters.Add("@UID", SqlDbType.VarChar).Value = UID
Cmd.Parameters.Add("@uName", SqlDbType.varchar).Value = UName
Cmd.Parameters.Add("@uInfo", SqlDbType.varchar).Value = UInfo
Cmd.ExecuteNonQuery()
Cmd.Dispose()
Catch ex As Exception
End Try
If Conn.State <> ConnectionState.Closed Then
Conn.Close()
End If
Conn.Dispose()
Conn = Nothing
End Sub |
|