Good afternoon,
I'm using RDC and need to do the following query on the sql server:
select * from cativos where stamp in ('stamp_1','stamp_2','stamp_3','stamp_n')
to get multiple results:
and i'm using this code:
But in sql profiler im receiving this:
exec sp_execute 1,N'B135-10100010001700586148'',''A135-VA51-1-N002170059314'',''A135-92006217006171489059'
thanks in advanced.
I'm using RDC and need to do the following query on the sql server:
select * from cativos where stamp in ('stamp_1','stamp_2','stamp_3','stamp_n')
to get multiple results:
and i'm using this code:
B4X:
'........................................ RECALCULAR TAMANHO ARRAY .........................
Dim STAMP_LINHA As String
Dim LISTA_1 As List=st.StringArrayToList (stamps_etiqueta,True,False)
For I = 0 To LISTA_1.Size-1
If LISTA_1.GET(I)="" Then Exit
If STAMP_LINHA="" Then
STAMP_LINHA=LISTA_1.GET(I)
Else
STAMP_LINHA= STAMP_LINHA & "','" & LISTA_1.GET(I)
End If
Next
ToastMessageShow(STAMP_LINHA,False)
'........................................ RECALCULAR TAMANHO ARRAY .........................
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "VERIFICA_CATIVOS_PREENCHIDOS"
cmd.Parameters = Array As Object(STAMP_LINHA)
reqmanager_ARM.ExecuteQuery(cmd,0,"receber_linhas_verifica_cativos")
But in sql profiler im receiving this:
exec sp_execute 1,N'B135-10100010001700586148'',''A135-VA51-1-N002170059314'',''A135-92006217006171489059'
my question is:
Why am i receiving double quotes ('') and not just a single quote (').
thanks in advanced.