954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

INSERT,UPDATE on Attached SQL Database File not working

Hi Friends,

I am facing a very bad problem.I have added an SQL Database using VS 2005>>Add New Item>>Sql Database.The problem I am facing is not able to execute an INSERT or UPDATE.But the thing is that just after inserting and viewing the contents of the same table in the same event,the inserted record is displaying.But if I close the application and look into table manually I couldn't see the newly entered record.

ExecuteNonQuery() is working and no exception is thrown.Please Help.Seems like some weird is happening:( .I dont have an SQL Server installed.I am using VS 2005 only to develop a database application.

Thanks in advance.

joshymraj
Newbie Poster
1 post since May 2008
Reputation Points: 10
Solved Threads: 0
 

I am facing the same problem :(
The SQL INSERT statement works just fine, but the inserted rows get deleted after closing the application! I only have this problem when using an attached database.

BadAssMF
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Sounds similar to another user's question. See responses and see if it fixes your problem: http://www.daniweb.com/forums/thread220905.html

DdoubleD
Posting Shark
996 posts since Jul 2009
Reputation Points: 341
Solved Threads: 233
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You