Column 'PlayerID' does not belong to table.

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 961 Views - Last Post: 03 July 2014 - 03:57 AM Rate Topic: -----

#16 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3519
  • View blog
  • Posts: 12,019
  • Joined: 12-December 12

Re: Column 'PlayerID' does not belong to table.

Posted 02 July 2014 - 10:04 PM

The CommandBuilder requires the table to have a primary key defined in order to generate the INSERT statement. I mention this because in post #4 you haven't indicated that there is a primary key set.
Was This Post Helpful? 0
  • +
  • -

#17 DarenR  Icon User is offline

  • D.I.C Lover

Reputation: 469
  • View blog
  • Posts: 3,199
  • Joined: 12-January 10

Re: Column 'PlayerID' does not belong to table.

Posted 03 July 2014 - 03:57 AM

update is not the same as insert


i = dataAdapter.Update(dt)


you need to place an insert command
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2