A
Andrew Banks
I'm using guid to generate primary keys for my SQL server DB
I'm now trying to query the DB but keep getting errors. It seems to be
erroring when passing the ID and it's always around a hyphen in the sring
I'm passing
Eg.
WHERE ID = '24646a31-c088-41da-b93c-32174588da48' errors near a31
WHERE ID = 'f7a9b89a-cbf6-4f40-aafe-7a861214ddcc' errors near f40
WHERE ID = '30328414-3e2a-4244-9163-e0384afe8b5a' errors near a
Can anyone help on this?
Are you supposed to escape the - in some way?
Thanks
I'm now trying to query the DB but keep getting errors. It seems to be
erroring when passing the ID and it's always around a hyphen in the sring
I'm passing
Eg.
WHERE ID = '24646a31-c088-41da-b93c-32174588da48' errors near a31
WHERE ID = 'f7a9b89a-cbf6-4f40-aafe-7a861214ddcc' errors near f40
WHERE ID = '30328414-3e2a-4244-9163-e0384afe8b5a' errors near a
Can anyone help on this?
Are you supposed to escape the - in some way?
Thanks