dta2sql - command-line tool to convert Stata 8 and Stata 10 .dta files to a SQL dump
dta2sql file.dta [otherfile.dta ...]
The result will be in file.sql (or file-1.sql, file-2.sql, etc; no overwriting of existing files).
Minimal documentation, error management and testing. All types of missing values in the .dta file are turned into NULLs. Probably some other problems.
This code comes with ABSOLUTELY NO WARRANTY of any kind.
Written by Franck Latremoliere. Copyright (c) 2007, 2008 Reckon LLP. http://www.reckon.co.uk/staff/franck/
This program is free software; you can use, redistribute and/or modify it under the same terms as Perl itself (Artistic Licence or GNU GPL).
Parse::Stata::DtaReader does the parsing.