Azure SQL Database
An Azure relational database service.
3,549 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using SQLCMD in bash script and it works well. But when I do target Azure SQL Server I got an error for using statement. Here is my command:
sqlcmd.exe -S DBserverName -U username -P p@ssword -i "C:\query.sql"
Using command not working on Azure DB. Remove all Using and use -d on you command. For example:
sqlcmd.exe -S DBserverName -U username -P p@ssword -i "C:\query.sql" -d your-db-name
You may, but I don't recommend it.