CREATE PROCEDURE GetActiveServerURL
(
@ActiveURL VARCHAR(100) OUTPUT
)
AS
BEGIN
SELECT @ActiveURL = RedirectURL FROM HealthCheck WHERE IsPrimary=1 AND Status=1
END
錯誤消息存儲過程通過錯誤: 過程或函數「GetActiveServerURL」預計參數「@ActiveURL」,但未提供。期間輸出參數
正如我已經宣佈ActiveURL作爲輸出參數還是老樣子,預計作爲輸入
你怎麼稱呼它? – a1ex07
EXEC GetActiveServerURL @ActiveURL OUTPUT –
它應該像'DECLARE @ActiveURL VARCHAR(100); EXEC GetActiveServerURL @ActiveURL OUTPUT;' – a1ex07