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

save in a database

Hi everybody
I'm usuing the walkthrough example in MSDN , I successfully created a SQL
database and I can retrieve my data in my application using bound controls
and Binding navigator but when I save something i the datebase and close the
application and then open it again all the new data i have saved are gone.
Even I added the code in my formclosing event
Me.AddressesBindingSource.EndEdit()
Me.AddressesTableAdapter.Update(Me.FirstDatabaseDa taSet.Addresses)
and results are the same.
Could be this because I dont have admin access to my computer at work? or
there is something Im missing here?

--
Best regards,
Edward
Jun 27 '08 #1
2 982
Edward,

Could it be that you are updating a copy of your database? For example:

http://msdn.microsoft.com/en-us/library/ms246989.aspx

Kerry Moorman
"Edward" wrote:
Hi everybody
I'm usuing the walkthrough example in MSDN , I successfully created a SQL
database and I can retrieve my data in my application using bound controls
and Binding navigator but when I save something i the datebase and close the
application and then open it again all the new data i have saved are gone.
Even I added the code in my formclosing event
Me.AddressesBindingSource.EndEdit()
Me.AddressesTableAdapter.Update(Me.FirstDatabaseDa taSet.Addresses)
and results are the same.
Could be this because I dont have admin access to my computer at work? or
there is something Im missing here?

--
Best regards,
Edward
Jun 27 '08 #2
Thank you, yes I did add a copy of the database in my project I’ll test
tonight the other way. I ‘m just puzzled why VB doesn’t update the copy of
the database which is in my project? In general which option is more useful?
I guess im not quite clear about those two ....
--
Best regards,
Edward
"Kerry Moorman" wrote:
Edward,

Could it be that you are updating a copy of your database? For example:

http://msdn.microsoft.com/en-us/library/ms246989.aspx

Kerry Moorman
"Edward" wrote:
Hi everybody
I'm usuing the walkthrough example in MSDN , I successfully created a SQL
database and I can retrieve my data in my application using bound controls
and Binding navigator but when I save something i the datebase and close the
application and then open it again all the new data i have saved are gone.
Even I added the code in my formclosing event
Me.AddressesBindingSource.EndEdit()
Me.AddressesTableAdapter.Update(Me.FirstDatabaseDa taSet.Addresses)
and results are the same.
Could be this because I dont have admin access to my computer at work? or
there is something Im missing here?

--
Best regards,
Edward
Jun 27 '08 #3

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
7
by: joseph.inglis | last post by:
I have a web browser object on a form which I have set to edit mode and use the UCOMIConnectionPointContainer interface to hook in and catch events. All working sweetly. Except there...
1
by: Sam Martin | last post by:
Hi all, got a problem when converting a PNG to a JPG using the Image.Save(stream, format) method. When I save the original PNG to a file and open it, it's fine. I then save it to a database,...
7
by: Shanli RICHEZ | last post by:
I'm using ASP.NET and quite a lot of object in memory instead of a database. The question is that I tried to save the data, serialize them in a XML file to save them when the application is...
4
by: xAvailx | last post by:
Hello: I didn't find any documentation that notes save point names are case sensitive, but I guess they are... Stored Proc to reproduce: /* START CODE SNIPPET */ If Exists (Select * From...
6
by: Sanjay | last post by:
Hi, Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and...
6
by: Josetta | last post by:
Access 2003 I've been experiencing some problems with my "monster" database the last couple of days. I imported all objects into a new database yesterday, which pretty much stopped the crashing...
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...
2
by: chike_oji | last post by:
Please can someone help me. I am writing a web application, that allows for the upload of an excel sheet into the database. I have an upload button and a save button. The upload button allows...
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
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
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
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...
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...
0
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,...

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.