Invoke-Sqlcmd : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - No such host is known.) At line:6 char:16 + ... LOutput = $(Invoke-Sqlcmd -ServerInstance $AzureSQLServerName -Userna ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException + FullyQualifiedErrorId : SqlExceptionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand
First published on MSDN on Jan 15, 2018 To provide complete solution to maintain you Azure SQL DB statistics and maintenance we provide our maintenance script here In this article, we will...
Updated Oct 27, 2024
Version 3.0Yochanan_Rachamim
Microsoft
Joined November 27, 2018
Azure Database Support Blog
Follow this blog board to get notified when there's new activity