If it is Azure synapse DB, we can pause it from the portal when we don't want to use this DB
Edit #1
If it is Azure serverless SQL DB - we can enable Auto pause setting as shown in screenshot in below thread
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav