dbTalk Databases Forums  

.mdf file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss .mdf file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Antz
 
Posts: n/a

Default .mdf file - 04-20-2004 , 03:25 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

Antz

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: .mdf file - 04-20-2004 , 03:52 PM






In message <1de201c42715$b0f61410$a001280a (AT) phx (DOT) gbl>, Antz
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
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

Antz
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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.