Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Values are getting inserted to database till application is running .... after closing application all inserted values get deleted...
Posted
Comments
Al Moje 17-Nov-11 4:18am    
Could you post your code so that we could analize what is going wrong with...
uspatel 17-Nov-11 4:35am    
What is your connection string?

A few things for you to check:
1) when you say "inserted to database" how have you checked? Have you databound a table, and assumed that changes to the table will automatically be reflected in the DB? Or have you looked at the database content using SQL Server Management Studio?
2) Are you using transactions, and have forgotten to Commit them?
3) Is the database in your project as a file? If so, do you have it's properties set to "Copy always"?
 
Share this answer
 
m using Access Database, When insert data into database in get inserted .... this i have verified by opening database, when i restart my application there is nothing in db... this happens everytime...
 
Share this answer
 
Comments
NikulDarji 18-Nov-11 1:54am    
can u plzz show the code???? Use "Improve Question" and post your code....and don't post your comment as solution....:)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900