Inserting values from a text file into Sybase SQL server? -


i have text file (i.e. practice.txt) following:

cow29,104,f duck49,20,d bat2,8,f fish52,3,f 

except has thousands of lines.

i write script insert rows sybase sql table like:

 name | number | class  --------------------- cow29  | 104    | f duck49 | 20     | d bat2   | 8      | f fish52 | 3      | f 

thanks!

try below command

bcp db_name..table_name in file_name -s server -u user -ppswd -t',' -c


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -