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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -