I have a table in which the userpassword field have varbinary datatype, So I'm confused that in which form should I save the data into userpassword field because when I save varchar data it gave me error.
I have a table in which the userpassword field have varbinary datatype, So I'm confused that in which form should I save the data into userpassword field because when I save varchar data it gave me error.
SELECT CAST(N'Test' as VARBINARY)
------you have to give it a size ---------->
SELECT CAST(N'Test' as VARBINARY(30))