2 Replies - 874 Views - Last Post: 03 February 2012 - 07:41 AM Rate Topic: -----

Topic Sponsor:

#1 kueh82  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 08-August 08

Can't Update database

Posted 10 August 2008 - 08:55 PM

i face problem in updating database which i only can save my data.....

i use MS SQL 2005 & visual studio 2005....actually i take over this project from previous programmer...she can update the database only using this 2 lines of code.

Me.BindingContext(dsVendor, "MVendor").EndCurrentEdit()
daVendor.Update(dsVendor, "MVendor")

this is the error:
Additional information: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information.

i try use the same idea to update but i fail.....is that any stored procedure in SQL to be write for update?

thx

This post has been edited by kueh82: 10 August 2008 - 09:05 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Can't Update database

#2 bry090911  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 93
  • Joined: 02-February 12

Re: Can't Update database

Posted 02 February 2012 - 07:09 PM

use com.ExecuteNonQuery()
Was This Post Helpful? 0
  • +
  • -

#3 Ionut  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 327
  • View blog
  • Posts: 914
  • Joined: 17-July 10

Re: Can't Update database

Posted 03 February 2012 - 07:41 AM

Similar problem
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1