|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to obtain rowversion columns from a tablehi
is anyone know how can test if a datacolumn is a rowversion column ? is ther anything same as primarykey property ? thanks Thierry Thierry,
Try calling Command.ExecuteReader (specifying CommandBehavior.KeyInfo), calling GetSchemaTable on the resulting DataReader, and then binding the schema table to a DataGrid. Each row in this schema corresponds to a column in the DataReader. Look for a column in the schema called IsRowVersion. I hope this information proves helpful. David Sceppa Microsoft This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use. © 2005 Microsoft Corporation. All rights reserved. |
|||||||||||||||||||||||