Hi JanVavra,
It seems there is a 2GB file size limit using sqlcmd. Please refer to this feedback.
To insert large data, could you please use BULK INSERT statement or BCP utility?
Or you can break the script file into multiple files, and then use sqlcmd to run them continuously as Viorel mentioned.
Please refer to bcp Utility and BULK INSERT which might help.
Best Regards,
Amelia
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.