Quantcast
Channel: SQL Errors – SQLSERVERLEARNER
Viewing all articles
Browse latest Browse all 74

procedure has no parameters and arguments were supplied sql server

$
0
0

When you try to pass arguments to stored procedure which do not have parameters you get the below error:

Msg 8146, Level 16, State 1, Procedure sp_helpsort, Line 0
Procedure sp_helpsort has no parameters and arguments were supplied.

Sample:

EXEC sp_helpsort 'SQL_Latin1_General_Cp1_CS_AS_KI_WI'

Fix:

Remove parameters:

EXEC sp_helpsort

Viewing all articles
Browse latest Browse all 74

Trending Articles