Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Upgraded to Visual C# Express 2005 SP1, can no longer persist data in     SQL Server Express

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hardieca@hotmail.com - 11 Mar 2008 23:29 GMT
Hi,

After upgrading C# Express 2005, none of my apps will persist data to
SQL Server Express (have not yet applied the Service
Pack...downloading now).

While the application is running, I can access the data I have tried
to save in the database, but as soon as I stop and restart the
application, the data disappears. It is like my entire application is
wrapped in a TransactionScope that does not get committed (and no, I'm
not using transactions...)

I even downloaded a couple starter kits from Microsoft, and data is
not being persisted in them either. I have tried inserting data with
inline SQL, stored procedures, and the starter kits are using custom
datasets, and the data keeps disappearing once the application is
stopped.

Anyone have any ideas? I tried googling for relevant information, no
joy.

C.
Lasse Vågsæther Karlsen - 12 Mar 2008 01:51 GMT
> Hi,
>
[quoted text clipped - 18 lines]
>
> C.

Just off the top of my head, could it be that your database file is
copied to the bin directory each time you build/run, so that you always
start with the same version?

If your database file is part of your C# project, check its properties
and see if it is set to be copied to the output directory every time,
and try to set it to only copy it if its newer.

Signature

Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.