The %.*ls function requires %d argument(s).

Error Message:
Msg 174, Level 15, State 1, Line 1
The %.*ls function requires %d argument(s).

Severity level:
15.

Description:
This error message appears, when a function is called with the wrong number of arguments supplied.

Consequences:
The SQL statement cannot be parsed and further execution is stopped.

Resolution:
Error of the Severity Level 15 are generated by the user and can be fixed by the SQL Server user. The function must be called with the correct number of arguments.

Versions:
All versions of SQL Server.

Example(s):
SELECT POWER(10.-1)

Remarks:
In the above example the POWER() function is called with just one argument instead of two. This raises the error. As one may guess, this error is frequently due to typos.

]]>

Leave a comment

Your email address will not be published.