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 / .NET Framework / ADO.NET / January 2006

Tip: Looking for answers? Try searching our database.

Question: moving around SQLExpress MDF file...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VB Programmer - 16 Jan 2006 00:11 GMT
I have a SQLExpress MDF file that I'm using for membership data, etc... in
my ASP.NET 2.0 website.

1.  If I want to use the website MDF during development on my local machine
can I simply copy the MDF from the website and replace the one on my dev
machine?  Or, are there special permissions to setup, etc...?  Is it pretty
transportable?

2.  To backup the database, if I just burn the MDF to a cd is that good
enough?  To restore can I just copy the MDF back to the webserver?

Thanks!
David Browne - 16 Jan 2006 05:32 GMT
>I have a SQLExpress MDF file that I'm using for membership data, etc... in
>my ASP.NET 2.0 website.
[quoted text clipped - 3 lines]
> my dev machine?  Or, are there special permissions to setup, etc...?  Is
> it pretty transportable?

So long as the the database has only on .MDF file and it is not mounted to a
SQL Server instance you can copy it just like a normal file.

> 2.  To backup the database, if I just burn the MDF to a cd is that good
> enough?  To restore can I just copy the MDF back to the webserver?

Yes.  This is refered to as a "cold backup" and you must shut down SQL
Server or detach the database file first.

David

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.