ADO Command og LIKE
Hej eksperter,ASP og brug af Command objektet har jeg lidt problemer med LIKE. Nedenstående kode virker, men jeg vil gerne have LIKE %variabel%..
strSQL = "SELECT * FROM daa_Ranking WHERE Navn LIKE ?"
Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = Conn
cmd.CommandType = adCmdText
cmd.CommandText = strSQL
cmd.Parameters.Append cmd.CreateParameter("@id", adVarChar, adParamInput, 255, Request("keyword"))
Set rs = cmd.Execute()
Kan i hjælpe?
