Hi Guys,
I'm having a lot of trouble writing a select statement to compare two values in t-sql which are of type image. This is what I have so far:
SELECT a.UserId, b.UserId
FROM [dbo].[aspnet_Profile] as a inner join [dbo].[aspnet_Profile] as b on
(a.UserId = <some string> AND b.UserId = <some other string>)
WHERE BINARY_CHECKSUM(a.PropertyValuesBinary) = BINARY_CHECKSUM(b.PropertyValuesBinary)
But I keep getting error messages no matter what I do to the WHERE clause. For the above query, the error message I get is:
Error in binarychecksum. There are no comparable columns in the binarychecksum input.
At any rate, any help would be very much appreciated. I'm have a very hard time doing anything with this data-type, for some reason...
BTW: I'm using SQL Server Web (I think it's the 2008 edition)...
Thanks!
Andrew