473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1662
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.