how to obtain rowversion columns from a table

  • Thread starter Thread starter Thierry
  • Start date Start date
T

Thierry

hi
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top