Re: Primary Key Count

Tech-Archive recommends: Fix windows errors by optimizing your registry



Jay,

You will have to get this information from the database. Of course,
this is database specific. Which database are you using on each end?


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx


"Jay" <Jay@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:99EEA2BA-CEFF-41A0-BC04-6B8FA4A2A810@xxxxxxxxxxxxxxxx
I'm trying to export some data from one database and upload it to another
and
I want to keep the routine generic. My problems is that a couple of the
tables have two fields in the primary key. How do I determine how many
fields in the key? It seems like Table.PrimaryKey.Length has the
information
I put in it, not information from the database...


.