Solved

How to export .dat file data to .txt files

Posted on 2008-06-17
4
1,300 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 500 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

688 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