Try avoiding special names, or use "[ ]" if you write SQL commands manually. For example: select [FUNCTION] from MyTable.
System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword 'FUNCTION'.'
J L
26
Reputation points
I followed all the steps in the c# procedure "Create a Windows Forms user control that supports simple data binding" and it worked fine.
Then I did the same, but instead of one Usercontrol I created four, and whenever I click on the Save button (created automatically) I get the message
System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword 'FUNCTION'.'
I appreciate any help.
Developer technologies C#
11,567 questions