473,394 Members | 1,701 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,394 software developers and data experts.

How can i save the data in the database using the BindingSource?

I am a newbie with VB.
I'm trying to add a new row to my database using the BindingSource.
I use the AddNew() and EndEdit() methonds but my changes dont
saved at my database ...
What is wrong ? How can i save my changes in the database (datasourse) ?
Some code it will acceptable.
Sorry for my english and thank you !
Feb 20 '07 #1
5 26244
Are you using DataTables, DataSets and DataAdapters to load your data
into your application? If so, you would call dataAdapter1.Update to
save your changes back to the database.
===================
Clay Burch
Syncfusion, Inc.

Feb 20 '07 #2
ClayB wrote:
Are you using DataTables, DataSets and DataAdapters to load your data
into your application? If so, you would call dataAdapter1.Update to
save your changes back to the database.
I have write :
BindingSource.EndEdit()
Me.TABLETableAdapter.Update(Me.DataSet.TABLE)

but the data dont saved at the database.

Can you give me an example please ?

Thank you !


Feb 20 '07 #3

"giannis" <zz********@freemail.grwrote in message
news:ui**************@TK2MSFTNGP02.phx.gbl...
ClayB wrote:
>Are you using DataTables, DataSets and DataAdapters to load your data
into your application? If so, you would call dataAdapter1.Update to
save your changes back to the database.

I have write :
BindingSource.EndEdit()
Me.TABLETableAdapter.Update(Me.DataSet.TABLE)

but the data dont saved at the database.

Can you give me an example please ?

Thank you !

What type of database are you using? SQLServer, SQLServerEXpress, Access?

Robin S.
Feb 20 '07 #4
RobinS wrote:
What type of database are you using? SQLServer, SQLServerEXpress,
Access?
Access
Feb 20 '07 #5

"giannis" <zz********@freemail.grwrote in message
news:OR*************@TK2MSFTNGP03.phx.gbl...
RobinS wrote:
>What type of database are you using? SQLServer, SQLServerEXpress,
Access?

Access
Do some reading. You'll learn it better.

http://msdn2.microsoft.com/en-us/lib...32(VS.80).aspx

Robin S.
Feb 20 '07 #6

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

Similar topics

0
by: Frank S. Romano | last post by:
Hello, Does anyone know how to bind the image property of a picture control to an Access 2000 database OLE object column that contains a MS Photo Editor 3.0 photo? When I try binding the picture...
2
by: Bassem | last post by:
Hi all... I searhed for a code to save and retrieve image from SQL database using Data adapter but I didn't found anything. Thanks, Bassem.
1
by: JJ | last post by:
Hi All, How in ASP.NET, from PopUp window: 1) - save Data in Database; and after 2) a) - Reload the opener window b) -close PopYp window. Note:
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
0
by: Rob | last post by:
I have a Webservice written in C# that provides data to both a web browser through ASP.net and to a VC++ client. I have been able to retrieve data from SQLServer and passing to my C++ client as...
2
by: vivekshrivastava51 | last post by:
Hi, i m making on web project using asp.net , C#.net in visual studio 2003 using sql server i have to save data using excel or csv file to database by what can i do if any one have...
1
by: TonyJ | last post by:
Hello! I'm using VS2005. I'm looking at ADO.NET and have found some test tutorial solution on microsoft MSDN. The one that I'm looking at now is called Walkthrough: Saving Data to a Database...
1
mafaisal
by: mafaisal | last post by:
Hello I am Using vb.net 2005 And sql2005 Please see then code below Public Sub Saving(ByVal Table As String, ByVal Fields As String, ByVal Values As String) Dim DsS As New DataSet ...
7
by: saadkhan | last post by:
Is there any way to create xml file and save it in SQL Server database all using javascript? I have no security issues for the purpose i need to do it. Though if anyone could give me some better idea...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.