Torna al Thread
Dim sSQL As String = "SELECT * FROM Tabella WHERE Campo Like @Campo" '<-- Qui è definito l'operatore LIKE in modo Strong
Dim _selectCommand As New SqlClient.SqlCommand(sSQL)
_selectCommand.CommandType = CommandType.Text
_selectCommand.Connection = Connection
_select.Parameters.Add("@Campo", SqlDbType.VarChar, 0) '<--A priopri so che tipo è il parametro
Dim sSel As String ="Valore"
_selectCommand.Parameters.Item("@Campo").Value = LikeString(Filtro.RagioneSociale) '<-- Uso una mia funzione per gestire il parametro