Reputation: 3964
I can't figure out why I am getting this error.
Could anyone please help?
UPDATE:
Even adding the @
character, the code still does not run.
Upvotes: 0
Views: 889
Reputation: 6437
You are missing the parameter type. The equivalent of SqlDbType.UniqueIdentifier is DbType.Guid
Upvotes: 1
Reputation: 3694
Please try the following:
@
in your parameter namecmd.CommandType = CommandType.StoredProcedure
p.DbType = DbType.Guid
Upvotes: 0