I have a tiered application. The datalayer makes a call to the database by using a dataset which contains a tableadapter. In the database table there is a field called ID of type UniqueIdentifier. I then create the following query:
select * from tbl where ID=@ID
When i try to preview the results in the dataset designer i receive the error "Failed to convert parameter value from string to guid".
I tried adding single quotes around the value passed in but didnt work.
Where am i going wrong?