Dim param As New SqlParameter()
param.Direction = ParameterDirection.ReturnValue
param.ParameterName = "returnValue"
add to parameter to collection
.Parameters.Add(param)
.CommandType = CommandType.StoredProcedure
.Connection = MedicalSQL.GetConnection
.ExecuteNonQuery()
There is sight suggesting using Public Sub InsertXML(TheXML As String)
Using objConn As New SqlConnection(DBConnectionString())
objConn.Open()
Using objCmd As New SqlCommand("dbo.ProductsAccessXMLInsert")
objCmd.CommandType = CommandType.StoredProcedure
objCmd.Connection = objConn
objCmd.Parameters.Add("ValidXMLInput", SqlDbType.Xml)
objCmd.Parameters(0).Value = TheXML
objCmd.ExecuteNonQuery()
End Using
objConn.Close()
End Using
End Sub
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.