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
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5