casting type for objectGuid

dl
Date: 05/27/05


Date: Fri, 27 May 2005 15:45:47 +0800

Hi
I am trying to put a user's objectGuid as the primary key onto a datatable
and be used as the unique key on editing / updating. But I seem to get
casting error with the following statement
dt.Columns.Add(new DataColumn("object_Guid", typeof(string)));

Any idea?

TIA

-- 


Relevant Pages

  • Re: Primary Keys
    ... relationship does not require that all the columns in its primary key (or ... other unique key) be used in the relationship. ... Each resident has several bank accounts. ... >> design the tables. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: primary key vs unique key
    ... Hi, this is not a PHP related question, is it? ... If you put a contraint like UNIQUE KEY or PRIMARY KEY on it, ... I *think/expect* mySQL uses B-tree to ...
    (comp.lang.php)
  • Re: Q: Datatables, Datasets and updating
    ... the automatic updating features of a DataSet and DataAdapter. ... > transfer the data inputted into the SQL database. ... >> The problem seems to be that you have defined Primary Key to mean Identity ...
    (microsoft.public.dotnet.languages.csharp)
  • Key violation override
    ... I'm updating a table via a form. ... to make sure that the value entered in the primary key ... standard "The value in the field or record violates the ... validation rule for the record or field." ...
    (microsoft.public.access.formscoding)
  • Re: Trigger for updated rows when PK changed
    ... I guess in pure relational theory updating a pk is meaningless - it's always ... Presumably a row-level trigger in something like Oracle would reflect this ... John ... > other than the primary key to uniquely the rows of your table, ...
    (microsoft.public.sqlserver.programming)