364 questions with SQL Server on Azure Virtual Machines tags
Unable to connect to Azure SQL database from SSMS
Hi, I followed this blog to create SQL Virtual Machine. I am able to connect to the default DB within the VM itself, but Not able to connect through my ocal workstation(Laptop). TITLE: Connect to Server …
KQL to monitor Sql Server Performance for Azure SQLVM
All, I'm looking KQL query to monitor SQL Server performance for Azure SQLVm using Log analytics workspace. Thanks.
How to expand sql datadisk
Hello everyone. I have an VM sql server with a DATADISK of 128GB I need to extend the disk and I see this: When I try to add for example 32Gb I obtain an error: So...I need first to modify my Datadisk 128GB to 256gb? (not possible to add only 32…
Does Get-AzSqlDatabase pull info from a SQL instance on a Azure VM ? I get this when i try.
Get-AzSqlDatabase : Can not perform requested operation on nested resource. Parent resource 'SQLInstance' not found. At S:\BackupStatus\All SQLServers.ps1:13 char:9 Get-AzSqlDatabase -ResourceGroupName $server.ResourceGroupNam ... …
Azure VM Type
Hi Team, While calculating cost of the Azure VM (through Azure calculator) on which SQL Server Standard 2019 is to be installed, for Type dropdown, what is the difference between OS only and SQL Server? Does this means for calculating cost of an…
Backup PostgreSQL
Hi All i have Azure Database for PostgreSQL server(Resource Type: Azure Database for PsotgreSQL flexible server). I want to take the backup as application team is performing an upgrade.
Connect SQLCMD in Linux using root user
Hi, how to connect SQLCMD in Linux using root user? We have SA account which got automatically disabled and there is no other login available to enable the SA Account or login to SQL Server SSMS. So, is there any way to login to SQL Server using…
do we have option to retsore sqldb in azure sql backup to different subscription
Hi Team, Do we have option to restore sql db from one subscription to another one like azure vm backup? From azure portal, we are unable to see the selection if different subscription during the sqldb restore Can you please check and update?…
Azure Script to find IAAS disk configurations
Hi All, I am trying to use below PS script to find out azure IAAS disk configuration including (LUN,Data Caching,IO,Bandwidth). Connect-AzAccount Set-AzContext -Subscription 'SubName' $vm=Get-AzVM -ResourceGroupName ReGrpNAME -Name…
Azure IAAS VM's comparison
Hi All, I have two node identical replicas having AG's. They are lifted to Azure from On-prem. I found similar difference in configuration. They dont match the sku's and disk configurations. Eg:- Data drive is Standard SSD in one VM and Premium…
Minimum SQL Server role to check SQL Agent status with PowerShell?
I need to execute the PowerShell to remotely check the SQL backup job status on each SQL Database instance across multiple SQL servers but as a Read Only user account. What are the minimum credentials or SQL Server role that I can use to query the…
SQL Renaming a column of a temp table
I can't get what is not working in the below bold highlighted line. I would be grateful to anyone who could help me! DECLARE @AssetWithDrawStartDate DATE; DECLARE @AssetWithDrawDate DATE; DECLARE @TradeStartDate DATE; DECLARE @TradeDate …
Restore TDE-Encrypted DataBase with BYOK in Azure Managed Instance to another Subscription
Is it Possible to Restore TDE-Encrypted Database with BYOK in Azure Managed Instance to another Subscription?
Migrate SQL Server on a VM to Azure SQL Databases
Hi everyone, I hope you are very well! I need to migrate a SQL Server database that we have in a virtual machine to a running SQL Database in a SQL Server and I don't know how to do it. Some help please?
On premise SQL server Licencing
Hi Team , Currently , We have an on-premise prod VM with SQL server along with BI tools (SSRS). Now, we are planning to provision two azure vm's for prod and dev environment on cloud. We are planning to use Azure SQL MI to host the Report databases. …
how to export bacpac file to azure blob storage from sql server using sqlpackage
I have some databases in the SQL server and I want to migrate them to the Azure SQL database for this I am using sqlpackage.exe for exporting and importing the databases. the issue is while exporting the database bacpac files are made in local disk, not…
Manually run a SQL Policy in Azure Backup
I created a SQL policy in Azure backup that performs a Full DB backup every night at 11PM and also runs Hourly Log Backups. The target SQL server has 14 databases on it, and I want to manually run a backup of the entire server. It seems like I…
Restore .bak into SQL Managed Instance
We have a requirement where a third-party vendor sends us .bak files every day and I have managed to find a way to restore the .bak into SQL managed instance using the Restore command. I need to know how much it will cost to restore and drop…
Azure App service failing to connect to the Azure SQL VM Server
The connection string of my .NET application to connect to the database has been provided in the configuration of an Azure App service and the database is present in an Azure SQL Virtual Machine, when trying to access the APIs of my application I see the…
Azure Virtual machine SQL web database limit per license
What is the number of databases you can have on a standard SQL web license on azure VM