Ciao ho la seguente query che in access mi funziona benissimo ma in Sql Server mi da errore di sintassi...
sql="SELECT * FROM Staff where IdStaff in (" + Replace(RefIdStaffSendToRead, "'", "''") + ") Order by Name asc"
Sql Server Management Studio:
Msg 105, Level 15, State 1, Line 1
Unclosed quotation mark after the character string '", "'") + ") Order by Name asc
'.
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '", "'") + ") Order by Name asc
'.
Asp:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E14)
Incorrect syntax near ')'.
Ho fatto vari tentativi ma non trovo la forma giusta per la sintassi, qualcuno mi sa aiutare?
Grazie

Rispondi quotando
