Reputation: 85
I'm executing the following stored procedure:
rows, err := w.repo.GetConn().Queryx("EXEC [Users].[User_Get] @ids", sql.Named("ids", tvp))
And getting the following error:
SQL: expected 0 arguments, got 1.
What's wrong and how to fix this?
Upvotes: 1
Views: 1020
Reputation: 85
The problem was in driverName
I put mssql
there instead of sqlserver
)
Upvotes: 3