yraykar Posted November 28, 2003 Posted November 28, 2003 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 Quote
Moderators Robby Posted November 28, 2003 Moderators Posted November 28, 2003 Does custDS contain the corect table name? Quote Visit...Bassic Software
yraykar Posted December 1, 2003 Author Posted December 1, 2003 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 Quote
Mehyar Posted December 1, 2003 Posted December 1, 2003 Are you using Stored procedures or SQL statements for your data adapters ? Quote Dream as if you'll live forever, live as if you'll die today
yraykar Posted December 1, 2003 Author Posted December 1, 2003 Stored procedures Hi, Not using stored procedures. Just using the tables directly Regards Yashasvi Quote
Mehyar Posted December 1, 2003 Posted December 1, 2003 Check your SQL statements, do they have a table that is not in the database ? Quote Dream as if you'll live forever, live as if you'll die today
yraykar Posted December 1, 2003 Author Posted December 1, 2003 Hi Did not use SQL statements either. Updated the table as below updateDS.Tables[0]["FieldName"]=currDS.Tables[0]["FieldName"] Regards Yashasvi Quote
*Experts* jfackler Posted December 2, 2003 *Experts* Posted December 2, 2003 If INSERT, UPDATE, or DELETE statements have not been specified, the Update method generates an exception. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.