Home All Groups Group Topic Archive Search About

Mapping date information from C# variable to a DataRow object

Author
15 Feb 2006 3:49 PM
Peter
I have a mapping question as below:
MyDataRow[name] = "Mary";          //OK, name defined as varchar, in Sql
table
MyDataRow[age]    = 25;                //OK, age defined as int, in Sql table
MyDataRow[dob]    = "19501229";   //not OK, dob defined as smalldatetime in
Sql
Please advise
Peter

AddThis Social Bookmark Button