In one of my classes for a web application I am developing, I have some reasonably long SQL queries.
When developing a three-tier application, what are the best practices to make this kind of code neater?
Dim dc As New SqlCommand("INSERT INTO Choices VALUES ('" + _
SanitizeInput(strUser) + "', '" + _
SanitizeInput(strFirstHalfDay) + "', '" + _
SanitizeInput(strSecondHalfDay) + "', '" + _
SanitizeInput(strFullDay) + "', " + _
SanitizeInput(Convert.ToInt32(firstHalfPaid).ToString()) + ", " + _
SanitizeInput(Convert.ToInt32(secondHalfPaid).ToString()) + ", " + _
SanitizeInput(Convert.ToInt32(fullPaid).ToString()) + ")", cn)
Do you consider this kind of code to be acceptable or stinky?