How do you get the output parameter value from a SQL stored proc in golang.......does anyone have an example please...using sqlx i've tried
(
@grade INT,
@user_id CHAR(10),
@card_number BIGINT OUT
db.Exec("call dbo.spGetNext 7,sSSSSS,@card_number;SELECT @card_number;")```
get ERROR - mssql: Must declare the scalar variable "@card_number".
Try using the QueryRowx:
something like this: