mysql - How do I import/handle large text files for MS SQL? -
i have 1.7gb txt file (about 1.5million rows) apparently formatted in way columns , rows, though don't know delimiter. need able import data mysql , ms sql databases run queries on.
i can't open in notepad see sample of data.
for future reference, how 1 handle , manipulate large data files? file format best? knowledge excel , csv not support unlimited numbers of rows.
you can use bcp in below
bcp yourtable in c:\data\yourfile.txt -c -t, -s localhost -t
hence know column name mysql, can create table structure before hand in sql server
Comments
Post a Comment