Hi guys
Can anyone tell me where is the wrong in this SQL Query?
Dim selectedCompany As String = cbCompany.SelectedValue
cm = New SqlCommand("Select distinct City From Staff Where Company='" + selectedCompany + "'", cn)
Where is the wrong in this SQL Query?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Jan 19, 2013, 9:20 AM EST