I tried to call a stored procedure like in your example but it doesn't work.
Here is what I did on the SQL server:
SELECT @@version;
Microsoft SQL Server 2019 (RTM-CU18) (KB5017593) - 15.0.4261.1 (X64)
Sep 12 2022 15:07:06 Copyright (C) 2019 Microsoft Corporation
Developer Edition (64-bit) on Linux (Oracle Linux Server 8.7) <X64>
CREATE TABLE accounts1 (
id INT,
account varchar(100)
);
INSERT INTO accounts1 (
id,
account
)
VALUES(
122,
'Miller'
),
(
123,
'Smith'
),
(
124,
'Johnson'
);
CREATE OR ALTER PROCEDURE [dbo].[sp_RunMe](@ID INT, @Account VARCHAR(100) OUTPUT)
AS
BEGIN
SET NOCOUNT ON;
SELECT account FROM accounts1 WHERE id = @ID
END;
Hi,
I tried to call a stored procedure like in your example but it doesn't work. Here is what I did on the SQL server:
Here is my go code:
If I try to run this I get this:
Is the Linux version of the SQL server not supported or am I doing something wrong? I'm grateful for every helpful hint.
Thank you