Creating a new database using an MDF file
Closed
samuelconaghan
Posts
1
Registration date
Sunday 16 November 2014
Status
Member
Last seen
16 November 2014
-
16 Nov 2014 à 05:26
jackoboyle51 Posts 1 Registration date Wednesday 19 November 2014 Status Member Last seen 19 November 2014 - 19 Nov 2014 à 13:05
jackoboyle51 Posts 1 Registration date Wednesday 19 November 2014 Status Member Last seen 19 November 2014 - 19 Nov 2014 à 13:05
Related:
- Creating a new database using an MDF file
- Dvi file - Guide
- Access database download - Download - Databases
- How to open .ps file - Guide
- Safari cannot open the page because it is a local file - Guide
- Pokemon emerald rom file - Download - Role playing
1 response
jackoboyle51
Posts
1
Registration date
Wednesday 19 November 2014
Status
Member
Last seen
19 November 2014
19 Nov 2014 à 13:05
19 Nov 2014 à 13:05
An MDF file isn't a backup file isn't the main data file (or master data file depending on who you ask) hence the file extension MDF. You can attach the MDF to the database by right clicking on the databases folder in Enterprise Manager (SQL 2000) or Management Studio (SQL 2005) then selecting all tasks and then Attach Database.
When you do this you will get an error about the log file missing. This shouldn't matter as SQL Server will simply create a new log file for you.
This will only work if the SQL Server was stopped when you copied the MDF file from the old SQL Server. If you copied the file while the SQL Server was running this file probably will not attach either and you will need to get a valid backup of the database.
Download help tool for sql database - SQL Server Restore Toolbox.
https://sql.recoverytoolbox.com/
You can read up more on SQL Server here.
http://ww7.filerepairforum.com
When you do this you will get an error about the log file missing. This shouldn't matter as SQL Server will simply create a new log file for you.
This will only work if the SQL Server was stopped when you copied the MDF file from the old SQL Server. If you copied the file while the SQL Server was running this file probably will not attach either and you will need to get a valid backup of the database.
Download help tool for sql database - SQL Server Restore Toolbox.
https://sql.recoverytoolbox.com/
You can read up more on SQL Server here.
http://ww7.filerepairforum.com