Solved

How to export .dat file data to .txt files

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

809 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