Hi,
You should use Guid data type instead of string.
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"ang" <(E-Mail Removed)> wrote in message
news:4CCFE30B-E70A-414B-A9C6-(E-Mail Removed)...
> Hi,
> I am facing this problem " specified cast is not valid" when I assgin a
string data type into SqlDataAdapter's sql parameter.
> I would like to know how to convert string data type variable to
UniqueIdentifier data type? Thank you
> Dim paraAppID As SqlParameter
> paraAppID = cmd.Parameters.Add("@AppID",
SqlDbType.UniqueIdentifier, 16, "AppID")
> paraAppID.Direction = ParameterDirection.Input
> paraAppID.Value = strAppID
>
> Regard,
> ang