ho scritto questo codice:
<%
Dim tipo
Dim materiale
Dim rete
Dim boccole
Dim stringa
tipo = Request.QueryString("tipo")
materiale = Request.QueryString("materiale")
rete = Request.QueryString("rete")
boccole = Request.QueryString("boccole")
stringa = tipo & "" & materiale & "" & rete & "" & boccole
Dim CODICE
Dim CODICE_numRows
Set CODICE = Server.CreateObject("ADODB.Recordset")
CODICE.ActiveConnection = MM_SQL_PRODUZIONE_STRING
CODICE.Source = "SELECT * FROM dbo.CODICI WHERE DESCRITTIVO = '%" + Replace(stringa, "'", "''") + "%'"
CODICE.CursorType = 0
CODICE.CursorLocation = 2
CODICE.LockType = 1
CODICE.Open()
CODICE_numRows = 0
%>
testo il contenuto della variabile stringa ed è esattamente quello nel campo del DB SQL server ma la Query non mostra il contenuto? ho provato a sotituire = con LIKE ma senza esito.
cosa sbaglio? grazie

Rispondi quotando