J
Jonathan Wood
Okay, I finally got databases working with my ASP.NET projects. Now, I'm
back to WinForms so here we go again.
I understand that when creating a database file in my project, the default
settings is to silently wipe out any existing data each time I run my
project. (Brilliant!) So I'm creating a test project in VS 2005 that uses a
SQL Server Express database. I then created a Windows form and bound my edit
controls to a table in the database. I'm able to add any number of records
and browse through them. But, again, if I terminate and restart the project,
all the data is gone.
SQL Server databases don't have a "Copy to Output" option so I'm not sure
where to go on this. I guess Microsoft just assumed anyone working with
WinForms wouldn't want to keep any data they created.
Does anyone know the trick to making my database changes permanent?
Thanks.
back to WinForms so here we go again.
I understand that when creating a database file in my project, the default
settings is to silently wipe out any existing data each time I run my
project. (Brilliant!) So I'm creating a test project in VS 2005 that uses a
SQL Server Express database. I then created a Windows form and bound my edit
controls to a table in the database. I'm able to add any number of records
and browse through them. But, again, if I terminate and restart the project,
all the data is gone.
SQL Server databases don't have a "Copy to Output" option so I'm not sure
where to go on this. I guess Microsoft just assumed anyone working with
WinForms wouldn't want to keep any data they created.
Does anyone know the trick to making my database changes permanent?
Thanks.