Hi all, need some help. I have a table called my_table say, and there is a uniqueidentifie r field in that table say my_column.
When I execute this query, I get back a row
select * from my_table where
my_column = 'B844EC98-F509-4F41-BC42-301DD22F6A12'
But, when I change the string value by changing any of the characters, I get an error stating
Server: Msg 8169, Level 16, State 2, Line 1
Syntax error converting from a character string to uniqueidentifie r.
However, if I change any of the numbers in the string, I do not get any data, but also I get no errors.
Can anyone please explain why this happens? Is it so, that for uniqueidentifie r columns, there are only a fixed set of characters, but numbers may alter? I am new to SQL Server, so it will be great if someone helps me out(I have replaced one character by those characters which are already present in the string itself, I don't get any errors. But suppose I replace D by X, I get an error)
When I execute this query, I get back a row
select * from my_table where
my_column = 'B844EC98-F509-4F41-BC42-301DD22F6A12'
But, when I change the string value by changing any of the characters, I get an error stating
Server: Msg 8169, Level 16, State 2, Line 1
Syntax error converting from a character string to uniqueidentifie r.
However, if I change any of the numbers in the string, I do not get any data, but also I get no errors.
Can anyone please explain why this happens? Is it so, that for uniqueidentifie r columns, there are only a fixed set of characters, but numbers may alter? I am new to SQL Server, so it will be great if someone helps me out(I have replaced one character by those characters which are already present in the string itself, I don't get any errors. But suppose I replace D by X, I get an error)
Comment