Groups | Blog | Home
all groups > sql server dts > april 2004 >

sql server dts : .mdf file


Antz
4/20/2004 1:25:58 PM
is this a SQL DB?
if so how can I export it into a text file?
the .mdf file is on my C:\ currently.
I archived it from my Websense app.

thanks

Darren Green
4/20/2004 9:52:45 PM
In message <1de201c42715$b0f61410$a001280a@phx.gbl>, Antz
<anonymous@discussions.microsoft.com> writes
[quoted text, click to view]

MDF is the default extension for SQL Server database data files. Do you
have a LDF files as well? If so lookup sp_attach_db in Books Online. If
you only have one files, then try sp_attach_single_file_db, but be
warned this may not work unless the files where detached cleanly.

This allows you to attach the files to a SQL Server, from which you will
then be able to export the data from the database, perhaps via BCP or
DTS. You cannot convert a mdf file to a text file directly.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org
AddThis Social Bookmark Button