[Solved] There are more columns in the INSERT statement than values specified in the VALUES clause [closed]
[ad_1] Your problem is that you are attempting to insert 3 values: values(‘{0}’,'{1}’,N'{2}’) Into 4 columns: (nokar,modeledokht,tozihat,username) I believe you meant to do this: values(‘{0}’,'{1}’,N'{2}’,'{3}’) Side note: Always use Command.Parameters instead of parsing your command as string! When parsing the command as a string, you are subjected to SQL injections and errors like the one … Read more