Using cn As New SqlConnection(ConnStr), cmd As New SqlCommand("sp_SetDestinations", cn) cn.Open() cmd.Parameters.Add("@Sex", SqlDbType.Char).Value = DR1("Sex").ToString cmd.Parameters.Add("@Breed", SqlDbType.Char).Value = DR1("Breed").ToString cmd.Parameters.Add("@FQA", SqlDbType.Char).Value = gFQA cmd.Parameters.Add("@Moves", SqlDbType.Int).Value = DR1("Moves") cmd.Parameters.Add("@Months", SqlDbType.Int).Value = DR1("Months") gStr1 = cmd.ExecuteScalar().ToString End Using
cmd.CommandType = CommandType.StoredProcedure
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)