Hi all:
I wonder which one would be faster to execute by SQL Server - especially if
I put this inside a scan-endscan loop:
1)
text to lcSQLCmd textmerge noshow pretext 2
select some_field_1, some_field_2
from a_table
where the_pk = ?lcThePrimaryKey
endtext
=sqlexec ( liSQLConnHandle, lcSQLCmd, [xCursor] )
OR: 2)
text to lcSQLCmd textmerge noshow pretext 2
select some_field_1, some_field_2
from a_table
where the_pk = '<<lcThePrimaryKey>>'
endtext
=sqlexec ( liSQLConnHandle, lcSQLCmd, [xCursor] )
(please notice the difference on where clause).
Looking forward to hearing from all of you. Thanks.
WBR,
Willianto