371 questions with SQL Server on Azure Virtual Machines tags
error with msodbc installation on docker
I had a container where I installed msodbc successfully 2023-02-11T19:37:57.4354185Z Step 26/48 : RUN sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 2023-02-11T19:37:57.4581744Z ---> Running in 4a4103163268 2023-02-11T19:37:58.7290566Z Reading…
Azure SQL Database and General Azure Questions
Hello everyone, We are experinced in on-premise world, but when it comes to cloud world we are rookie. So, we have some questions to understand Azure Cloud. Like Oracle SQL and ODI in on-premise world, What is the best tool combination in terms of…
I installed the sql server in Azure Windows VM(IAAS) service to configure to azure webapp
I installed the SQL server in Azure Windows VM(IAAS) service to configure the azure web app using VNet Integration But it is not connected and also I set up the NSG rules to the VM. Can you plz suggest to me how to integrate IAAS SQL into Azure Web…
Need to migrate from SQL 2016 onprem to Azure Synapse or SQL server on VM or MI, which option is best in terms of cost and compatibility. Total database size is around 110GB.
Need to migrate from SQL 2016 onprem to Azure Synapse or SQL server on VM or MI, which option is best in terms of cost and compatibility. Total database size is around 110GB.
Should we use second network card for SQL Server AlwaysOn AG group private network on VMs?
We are using VMs for all SQL Servers. Network cards will be virtual as well. When we build AlwaysOn AG group, should we use two network cards for each nodes? One for private which can use for mirror/replication data, one for listener or public? Or…
How to restore azure sql server database from .bak file located in blob storage automatically with sql server agent jobs
Hi! My current setup consists of a blob storage account cointaining .bak backup files, in addition to an SQL server running on an Azure Virtual Machine. I want to automatically restore the database located at the sql server every night (when a new .bak…
How can I get SQL VM retail rates using REST API?
I want to get the platform retail rates of my SQL VMs that I have running, but through code using the REST API but can't find any rates for SQL VMs. I don't want to manually use the Azure Calculator and the rates and rate card attributes of resources are…
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?