all groups > sql server dts > july 2003 >
You're in the

sql server dts

group:

import an .mdf file into an existing database



import an .mdf file into an existing database dwight paul
7/28/2003 1:50:01 PM
sql server dts: I need a step by step on how to take a .mdf file and
import it into an existing SQL database. Any pointers
would be greatly appreciated.

Sincerely,
Re: import an .mdf file into an existing database Allan Mitchell
7/28/2003 9:00:38 PM
Not quite that simple.

..mdf is the master data file for a SQL Server database.

Attached to nothing (i.e. as a file) it is useless. You should ideally have a .ldf as well.

If not then look up

sp_attach_db abd
sp_sttach_single_file_db




--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
AddThis Social Bookmark Button