I am trying to retrieve a dataset from a database using a sql string in vb.net.
Code:
Dim sSql As String = "Select * FROM mytable where id = " + propID
Dim ds As DataSet = New DataSet()
Try
ds = coApp.ConnectionManager.LoadSQLToDs(sSql)
Catch ex As Exception
The propID variable is a value with '/' in it, like '1/83/42'. The exception message is: Incorrect syntax near '/'. How can I pass this value in my sql string?