Forum Discussion
Vrasackz
Mar 14, 2024Copper Contributor
Is it possible to query a database using azure client commands?
Hi guys, I'm trying to query a record in my azure database record using azure client, I tried to use the commands below but both failed... az sql database query --resource-group myresource...
- Mar 15, 2024
Hello Vrasackz
As you mentioned I didn't find these commands into the AZ CLI documentation, so I am not sure that you can proceed like this.
Instead of AZ CLI, maybe you can consider to use https://learn.microsoft.com/en-us/sql/tools/sqlcmd/sqlcmd-utility?view=sql-server-ver16&tabs=go%2Cwindows&pivots=cs1-bash?
arnaud_grow-una
Mar 15, 2024Brass Contributor
Hello Vrasackz
As you mentioned I didn't find these commands into the AZ CLI documentation, so I am not sure that you can proceed like this.
Instead of AZ CLI, maybe you can consider to use https://learn.microsoft.com/en-us/sql/tools/sqlcmd/sqlcmd-utility?view=sql-server-ver16&tabs=go%2Cwindows&pivots=cs1-bash?