I am trying to pass a uniqueidentifier parameter to a stored procedure using the following code:
myCommand.Parameters.Add(\"@BlogID\", SqlDbType.UniqueIdenti
Try this
myCommand.Parameters.Add("@BlogID", SqlDbType.UniqueIdentifier).Value = new Guid("96d5b379-7e1d-4dac-a6ba-1e50db561b04");
A unique identifier is a GUID. so it's a different object type to your string.
You need
myCommand.Parameters.Add("@BlogID", SqlDbType.UniqueIdentifier).Value =
new Guid("96d5b379-7e1d-4dac-a6ba-1e50db561b04");