Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim retValue As Integer = 0 Using connection As New SqlClient.SqlConnection(connectString) Dim command As SqlClient.SqlCommand = connection.CreateCommand command.CommandType = CommandType.StoredProcedure command.CommandText = "LongProcess" command.CommandTimeout = 18000 ' 5 hours command.Parameters.Add("@Descrip", SqlDbType.VarChar).Value = descrip Try command.Connection.Open() retValue = command.ExecuteNonQuery Catch ex As Exception Throw ex End Try End Using Return retValue End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.