472,803 Members | 1,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,803 software developers and data experts.

Issue with UPDATE function in DataAdapter

Hi,
I save multiline value in Column "Address" in Table in DataSet , but after
UPDATE (save new row on SQL Server) is saved only first line from all lines
in "Address" column. I have also second Column "Notes" where are saving also
multiline values, but there is no problem with saving. All is same like
Column "Address".

Do you have any ideas?

Thanks Lubos
Nov 16 '05 #1
3 1635
Check the datatypes of your Address column on Sql Server Table, make sure it
is the same as you have for Notes Column. Also, do not add/ insert/ update
records in your underlying database by just Insert or Update command,
instead use Parameters to insert or Update.

Good Luck !!!

"Luboš Šlapák" <lu**********@centrum.cz> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Hi,
I save multiline value in Column "Address" in Table in DataSet , but after
UPDATE (save new row on SQL Server) is saved only first line from all lines in "Address" column. I have also second Column "Notes" where are saving also multiline values, but there is no problem with saving. All is same like
Column "Address".

Do you have any ideas?

Thanks Lubos

Nov 16 '05 #2
I use Parameters in Insert command and also Address column is datatype TEXT.
I don't know where is mistake.

"Lord2702" <Lo******@MSN.com> píše v diskusním příspěvku
news:%2****************@TK2MSFTNGP15.phx.gbl...
Check the datatypes of your Address column on Sql Server Table, make sure it is the same as you have for Notes Column. Also, do not add/ insert/ update
records in your underlying database by just Insert or Update command,
instead use Parameters to insert or Update.

Good Luck !!!

"Luboš Šlapák" <lu**********@centrum.cz> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Hi,
I save multiline value in Column "Address" in Table in DataSet , but after UPDATE (save new row on SQL Server) is saved only first line from all

lines
in "Address" column. I have also second Column "Notes" where are saving

also
multiline values, but there is no problem with saving. All is same like
Column "Address".

Do you have any ideas?

Thanks Lubos


Nov 16 '05 #3
I use Parameters in Insert command and also Address column is datatype TEXT.
I don't know where is mistake.

"Lord2702" <Lo******@MSN.com> píše v diskusním příspěvku
news:%2****************@TK2MSFTNGP15.phx.gbl...
Check the datatypes of your Address column on Sql Server Table, make sure it is the same as you have for Notes Column. Also, do not add/ insert/ update
records in your underlying database by just Insert or Update command,
instead use Parameters to insert or Update.

Good Luck !!!

"Luboš Šlapák" <lu**********@centrum.cz> wrote in message
news:eV**************@TK2MSFTNGP10.phx.gbl...
Hi,
I save multiline value in Column "Address" in Table in DataSet , but after UPDATE (save new row on SQL Server) is saved only first line from all

lines
in "Address" column. I have also second Column "Notes" where are saving

also
multiline values, but there is no problem with saving. All is same like
Column "Address".

Do you have any ideas?

Thanks Lubos




Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: hch | last post by:
dataAdapter.Update(data, "TableName") won’t work! I was about to deploy my first website on the Internet only to discover that the dataAdapter.Update() throws the Server Error in the third...
0
by: ardin | last post by:
anyone please help, i am developing and application that uses the update method of dataadapter (select, update, delete command was set by issuing the OleDbCommandBuilder)in updating the database. ...
2
by: Mojtaba Faridzad | last post by:
Hi, Please check these lines: DataSet dataSet = new DataSet(); dataAdapter.Fill(dataSet, "mytable"); DataRow row; row = dataSet.Tables.Rows; row.BeginEdit(); row = "555";
3
by: JacksonYin | last post by:
1. I can fill data from Excel to DataSet like this: OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../../Book1.xls;Extended Properties=Excel...
4
by: CaptRR | last post by:
I think this is the right group to post to, so here goes. My problem is this, I cannot update the datarow to save my life. Been on this for 2 days now, and still am no closer to figuring it out...
9
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from...
1
by: Sajid | last post by:
Hello, I am trying to bind a DataTable to a Grid which will allow users to Edit data and then submit the changes back to the Database. I want to display values in the Grid satisfying a...
6
by: Gary Paris | last post by:
Cor, I made the changes you suggested by I get an error message saying "Incorrect syntax near the keyword 'trigger'. What is wrong? ------------------------------ Last message from...
8
by: Zorpiedoman | last post by:
I keep getting a concurrency exception the second time I make a change and attempt to update a dataadapter. It appears this is by design, so there must be something I can do to avoid it. ...
8
by: Ornette | last post by:
Hello, I have a stored procedure which generates some values in the table. When I use update() how to populate the dataset with theses values ? For the moment I use output parameter but it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.