DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   *.dat conversion to *.tax file pls help (http://www.daniweb.com/forums/thread40862.html)

jto Mar 10th, 2006 10:04 am
*.dat conversion to *.tax file pls help
 
1 Attachment(s)
i have a *.dat file which is i am sending as attachment can any body help to convert this file in to text file or any other database format such as access /oracle etc

iamthwee Mar 10th, 2006 12:43 pm
Re: *.dat conversion to *.tax file pls help
 
I don't get it...

:sad:

Ancient Dragon Mar 10th, 2006 10:18 pm
Re: *.dat conversion to *.tax file pls help
 
If you want it ported to MS-Access or Oracle you will have to use their database engine to import the file into the database tables. Each database has its own unique file formats so the safest way to do it is to use the appropriate database engine. And some cost thousands of $$$$$$$. Some are relatively cheap or even free (like MySql)

jto Apr 15th, 2006 11:16 am
Re: *.dat conversion to *.tax file pls help
 
can u sugegst me the coding in "C/C++" to read this file which will save file in text format or any other format ., then we will able to convert in required database.

thank u

Ancient Dragon Apr 15th, 2006 12:06 pm
Re: *.dat conversion to *.tax file pls help
 
Quote:

Originally Posted by jto
can u sugegst me the coding in "C/C++" to read this file which will save file in text format or any other format ., then we will able to convert in required database.

thank u

Well, you could use ODBC to read the tables using normal SQL statements. There are ODBC c++ classes on the net, just google for them. You can have two databases open at the same time each with its own connection. Get a resultset from one db then use sql statements to insert the rows into the second db. That should be pretty straight forward, and you don't have to know a thing about how the files are maintained. Buy yourself an SQL book if you don't know the langage -- its too complex to explain here.


All times are GMT -4. The time now is 6:15 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC