Elykov Alexandr
Elykov Alexandr

Reputation: 85

SQL expected 0 arguments, got 1

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

Answers (1)

Elykov Alexandr
Elykov Alexandr

Reputation: 85

The problem was in driverName I put mssql there instead of sqlserver)

Upvotes: 3

Related Questions