?
Solved

How to export .dat file data to .txt files

Posted on 2008-06-17
4
Medium Priority
?
1,301 Views
Last Modified: 2008-07-11
Hi All
I have a database and all the files are in .dat format. How do I export them all to .txt format. Arethere any programs that can do that ?

Cheers
0
Comment
Question by:meperera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 21800811
What database created these files- how were they created?

(.dat file extension can be anything - you might as well say 'i have some files' )
0
 
LVL 2

Expert Comment

by:ayus80
ID: 21800873
Try right click at file and select open with.
use notepad to open that file
0
 

Author Comment

by:meperera
ID: 21800951
they were created using ms sql
0
 
LVL 51

Accepted Solution

by:
Mark Wills earned 2000 total points
ID: 21805046
Is that ms sql or my sql as per the zone... ".dat" as an MS SQL file doesn't make sense... Are they big ? can you zip and post one ?

if mysql : http://dev.mysql.com/doc/refman/5.0/en/select.html   and then do a ctrl+F to do a find for  outfile
e.g.  SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
  LINES TERMINATED BY '\n'
  FROM test_table;

if mssql : http://msdn.microsoft.com/en-us/library/ms162802.aspx

e.g. bcp "SELECT Name FROM AdventureWorks.Sales.Currency" queryout Currency.txt -T -c
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question