Skip to main content
5-Regular Member
December 19, 2016
Solved

Can we add composite key to existing datatable?

  • December 19, 2016
  • 2 replies
  • 1818 views

Hi,

Currently, I have a datatable with 1 primary key.

The datatable has data in it. The datatable has around 100 records.

I want to add another primary key so that I achieve composite key on the datatable.

Can this be done?

Thanks

Anirudha

Best answer by CarlesColl

You can do it for sure, but existing entries will have wrong internal "key" content, what I would do it's recreating existing entries.

2 replies

1-Visitor
December 19, 2016

You can do it for sure, but existing entries will have wrong internal "key" content, what I would do it's recreating existing entries.

ahanchat5-Regular MemberAuthor
5-Regular Member
December 19, 2016

Ok