Solution 1:
It solved by using bulk copy data (bcp) syntax.
bcp Tablename in ~/filename.txt -S localhost -U sa -P <your_password> -d Databasename -c -t ','
It solved by using bulk copy data (bcp) syntax.
bcp Tablename in ~/filename.txt -S localhost -U sa -P <your_password> -d Databasename -c -t ','