Results 1 to 2 of 2

Thread: [2005] How to get primary key field name?

  1. #1

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    [2005] How to get primary key field name?

    Hi,
    How can we retrieve the primarykey field name from the table through coding?
    God has been pleased to place as a king or cobbler do the work sincerely

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] How to get primary key field name?

    Those b*ggers at Microsoft hide things so well. They hid the primary key of a table in the DataTable.PrimaryKey property. The scoundrels!
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width