【DotNet】VB.NET调用存储过程

Me.tmp_Command.CommandText = tmpStr '调用存储过程
Try
Me.tmp_Flag = True
Me.tmp_Connection.Open()
Me.tmp_Command.CommandType = CommandType.StoredProcedure
Me.tmp_Command.ExecuteNonQuery()
Catch
Me.tmp_Flag = False
Finally
Me.tmp_Command.CommandType = CommandType.Text
If Me.tmp_Connection.State = ConnectionState.Open Then
Me.tmp_Connection.Close()
End If
End Try


原文地址:https://www.cnblogs.com/sekihin/p/742809.html
Creative Commons License 本作品采用 知识共享署名-非商业性使用 2.5 中国大陆许可协议进行许可。