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

problem updating database

I use a table adapter to add rows to a database, using Update();
After adding a row to the database and closing the application, if I
run the application again, and call Fill(), I can see the new data, as
if it appears in the database. However, if I open the database itself
in the server browser and view the corresponding table I cannot see the
new data there. Furthermore, after viewing the table in the database,
when I fire the application, and call Fill(), the new data is not there
anymore. The same thing happens if I do refresh to the database in the
server browser window. What Refresh actually does is bring the database
to its older position.
Any idea about what I should do to get the database updated
permanently?

Thanks
Dani

Jan 12 '07 #1
3 1397
Hi Dani,
Any idea about what I should do to get the database updated
permanently?
If after you save the data you can close the application, restart it, call
Fill and see the data, then it is being persisted. Can you restart the
application once again and still see the data without using Server Explorer?

Maybe you're not using Server Explorer correctly and deleting the data,
somehow. What type of database is it?

--
Dave Sexton
http://davesexton.com/blog

"dani kotlar" <da*********@gmail.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
>I use a table adapter to add rows to a database, using Update();
After adding a row to the database and closing the application, if I
run the application again, and call Fill(), I can see the new data, as
if it appears in the database. However, if I open the database itself
in the server browser and view the corresponding table I cannot see the
new data there. Furthermore, after viewing the table in the database,
when I fire the application, and call Fill(), the new data is not there
anymore. The same thing happens if I do refresh to the database in the
server browser window. What Refresh actually does is bring the database
to its older position.
Any idea about what I should do to get the database updated
permanently?

Thanks
Dani

Jan 12 '07 #2
Hi Dave,
Thanks for your answer. You are right, clearly the data is being
persisted. I am using SQL Server Express. As I said, once I view the
table data in the server explorer of visual studio 2005, the data goes
back to its initial position, before it was edited. Can it be some kind
of a bug in Visual studio 2005?
Dani

Dave Sexton כתב:
Hi Dani,
Any idea about what I should do to get the database updated
permanently?

If after you save the data you can close the application, restart it, call
Fill and see the data, then it is being persisted. Can you restart the
application once again and still see the data without using Server Explorer?

Maybe you're not using Server Explorer correctly and deleting the data,
somehow. What type of database is it?

--
Dave Sexton
http://davesexton.com/blog

"dani kotlar" <da*********@gmail.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
I use a table adapter to add rows to a database, using Update();
After adding a row to the database and closing the application, if I
run the application again, and call Fill(), I can see the new data, as
if it appears in the database. However, if I open the database itself
in the server browser and view the corresponding table I cannot see the
new data there. Furthermore, after viewing the table in the database,
when I fire the application, and call Fill(), the new data is not there
anymore. The same thing happens if I do refresh to the database in the
server browser window. What Refresh actually does is bring the database
to its older position.
Any idea about what I should do to get the database updated
permanently?

Thanks
Dani
Jan 14 '07 #3
Hi Dani,

I guess it could be a bug, but I doubt it. Unfortunately, there's not much
anyone can do to help you unless you provide more detail. If you could
define the exact steps that you've taken so that readers can reproduce the
exact problem you are having then you'll get a better response. It's likely
that you'll find the solution yourself in trying to reproduce the problem
for the newsgroups.

--
Dave Sexton
http://davesexton.com/blog

"dani kotlar" <da*********@gmail.comwrote in message
news:11**********************@a75g2000cwd.googlegr oups.com...
Hi Dave,
Thanks for your answer. You are right, clearly the data is being
persisted. I am using SQL Server Express. As I said, once I view the
table data in the server explorer of visual studio 2005, the data goes
back to its initial position, before it was edited. Can it be some kind
of a bug in Visual studio 2005?
Dani

Dave Sexton ???:
Hi Dani,
Any idea about what I should do to get the database updated
permanently?

If after you save the data you can close the application, restart it, call
Fill and see the data, then it is being persisted. Can you restart the
application once again and still see the data without using Server
Explorer?

Maybe you're not using Server Explorer correctly and deleting the data,
somehow. What type of database is it?

--
Dave Sexton
http://davesexton.com/blog

"dani kotlar" <da*********@gmail.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
I use a table adapter to add rows to a database, using Update();
After adding a row to the database and closing the application, if I
run the application again, and call Fill(), I can see the new data, as
if it appears in the database. However, if I open the database itself
in the server browser and view the corresponding table I cannot see the
new data there. Furthermore, after viewing the table in the database,
when I fire the application, and call Fill(), the new data is not there
anymore. The same thing happens if I do refresh to the database in the
server browser window. What Refresh actually does is bring the database
to its older position.
Any idea about what I should do to get the database updated
permanently?

Thanks
Dani

Jan 14 '07 #4

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

Similar topics

4
by: Frnak McKenney | last post by:
I'm using an in-core DataSet as an image of my application's 'database' (a multi-table Access97 mdb file). Updates are made to the DataTables within the DataSet via forms with bound TextBoxes,...
1
by: Steven Blair | last post by:
Hi, Here is a short decsription of my problem. I have written a dll for Database accessing. I have one method which can return a Dataset and another method which takes a Dataset and upates a...
1
by: delta7 | last post by:
Hi, I'm new to C sharp and currently writing a small program that uses an Access 2003 database. I am currently having a problem when updating a row that includes numeric data. When updating...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
14
by: Lars Netzel | last post by:
A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
31
by: Lag | last post by:
Having a problem updating my database from a web page, through a submission form. Can anyone help? ----THIS IS MY CODE IN update.php----(user, pass, and database are typed in directly, I...
1
by: r2destini | last post by:
Hi Friends, I am new to .Net. So I don't know much. I am facing a problem in updating database through ADO.Net I am creating the dataset and there is no problem in the updation and...
5
by: Brad Baker | last post by:
I'm trying to write a simple asp.net page which updates some data in a SQL database. At the top of the page I have the following code: <%@ Page Language="C#" Debug="true" %> <%@ import...
11
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.