I am writing a shell script which will import the csv file to an already created table in SQL Server. I know how to retrieve the data to a file but doing reverse which I am not familiar with.
sqlcmd -S "$DB_HOST" -U "$DB_USER" -P "$DB_PASSWORD" -o "$mssqlresult" -s "," -W -h -1 -Q "select query"
Any pointers will be helpful.