I have a Azure SQL Database with a SQL View - that I want to view in PowerShell.
I have been looking and working with :
Read-SqlViewData -ServerInstance "xxx.database.windows.net" -DatabaseName "dbname" -ViewName "viewNAme" -TopN 2 -Credential $cred -SchemaName "dbo"
I have got the $cred by get-credential.
I am wondering if this is now for Azure SQL and it is for a SQL installation on a server, as I am getting an error:
ItemNotFoundException on the Server Instance.
Any help would be great as this is my first time getting sql azure data with PowerShell.