Strongly Typed Data Set Type proble RRS feed

  • Question

  • Hi,

    When my Table Column has Type uniquidentifier...then Typed Data Set's Insert and Update method make  Dbtype of this Field 'AnsiString'...It should set it to Guid rather than AnsiString

    This is error in the type dataset.

    Monday, January 28, 2008 4:48 PM


  • Hi,


    When I added a typed dataset through the "Add New Dataset" wizard, it mapped sql data type uniqueidentifier to System.Guid by default. Is your database a sql server database? No matter which type it is, you can certainly change it to System.Guid in the designer of the typed dataset. (Select the property of the column in the typed data table, set the DataType property in the Properties windows.)


    Best Regards

    Chunsheng Tang

    Wednesday, January 30, 2008 10:21 AM