Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi All,

 

I am using the dataadapter to update the source but i am getting an error. The modification involves change in boolean, datetime, int and string values. I am calling the method as follows

 

da.Update(custDS,"GROUP");

 

"Incorrect syntax near keyword 'Table_Name'"

 

Regards

Yashasvi

Posted

Re: To Table name

 

Hi,

 

Yes the dataset has correct table name. The version used is VS.NET 2002 Framework version 1.0.3705.

 

The name was set like this:

 

custDS.Tables[0].TablesName="GROUP"

 

Just ignore the syntax mistakes here if any, i have done it this way with proper syntax.

 

Regards

Yashasvi

Posted

Hi

 

Did not use SQL statements either. Updated the table as below

 

updateDS.Tables[0]["FieldName"]=currDS.Tables[0]["FieldName"]

 

Regards

Yashasvi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...