运行命令SELECT IA.ID,
COUNT (IA.INVOICE_ID) TOTAL_DE_FACTURAS,
SUM (
CASE
WHEN IA.SUMMED_INVOICE_AMOUNT <> 0 THEN IA.SUMMED_INVOICE_AMOUNT
ELSE IA.BASE_AMOUNT
END)
MONTO_TOTAL,
IA.CURRENCY_CODE TIPO_DE_MONEDA,
MIN (IA.INVOICE_DATE) PRIMER_FACTURA,
MAX (IA.INVOICE_DATE) ULTIMA_FACTURA
FROM ( SELECT
SUM (INVOICE_AMOUNT) AS SUMMED_INVOICE_AMOUNT,
INVOICE_DATE,
CURRENCY_CODE,
INVOICE_ID,
ID,
BASE_AMOUNT
FROM INVOICES_ALL IA
GROUP BY INVOICE_DATE,
CURRENCY_CODE,
INVOICE_ID,
ID,
BASE_AMOUNT) IA
GROUP BY IA.ID, IA.CURRENCY_CODE
ORDER BY TOTAL_DE_FACTURAS DESC;
时
我收到错误消息:
az sql db export
因为它无法连接到存储帐户。当我允许防火墙中的所有网络时,它起作用。
这是不对的,还有另一种方法允许SqlServer连接到存储帐户吗?
注意:“允许受信任的Microsoft服务访问此存储帐户”没有任何作用。两者都在同一位置。