473,791 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 26279
Are you using DataTables, DataSets and DataAdapters to load your data
into your application? If so, you would call dataAdapter1.Up date 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.Up date to
save your changes back to the database.
I have write :
BindingSource.E ndEdit()
Me.TABLETableAd apter.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********@fre email.grwrote in message
news:ui******** ******@TK2MSFTN GP02.phx.gbl...
ClayB wrote:
>Are you using DataTables, DataSets and DataAdapters to load your data
into your application? If so, you would call dataAdapter1.Up date to
save your changes back to the database.

I have write :
BindingSource.E ndEdit()
Me.TABLETableAd apter.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, SQLServerEXpres s, Access?

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

"giannis" <zz********@fre email.grwrote in message
news:OR******** *****@TK2MSFTNG P03.phx.gbl...
RobinS wrote:
>What type of database are you using? SQLServer, SQLServerEXpres s,
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
1867
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 control image with the advanced binding panel, my dataset shows the table with the column but it will not set. I read thru the MS Knowledge Base and the closest solution I could find was article 317701. The example code reads an image "from...
2
11337
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
3642
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
8326
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 records in the database. Is it possible to create a SQL Server database using vb.net? I know I can use vb.net and ADOX to create a Access database. But I can't create SQL database using vb.net.
0
1901
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 XML without a problem using the SqlDataAdaptor and the DataSet. I am a bit confused how to save data to SQL Server from my client. I figured if I could create a DataSet, I could save it to the database. I wrote a WebMethod that takes a string...
2
1459
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 coding pls send me its urjent.. thanks.
1
2618
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 (Single Table) I have followed the walkthrought exectly but it doesn't work as expected.
1
1377
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 Dim cmd1 As New OleDbCommand(" Select * From " & Table & " Where 1 =2 ", Con) 'Dim cmd1 As New OleDbCommand(" Insert into Users Select * From Users Where 1=2 ", Con) Dap = New OleDbDataAdapter(cmd1) Dap.Fill(DsS, Table)
7
4895
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 with some sample code, that will be appreciated.... I am generating xml stuff to be saved to database using javascript, but now I am wondering how to save it. Or should i use webservice for this? Actually I want to achieve above mentioned task...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10155
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5431
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.