I want to execute a SQL command from c#
I have:
ccDc = getDataContext();
int MD5 = ccDc.ExecuteCommand("SELECT HASHBYTES('MD5', ChunkData) FROM dbo.x where id={0}", Id);
When I run this
SELECT HASHBYTES('MD5', ChunkData) FROM dbo.x where Id = '40'
I can see the string of md5 but in c# it just returns an integer. But I need to save the result in a string.
How can I do it?