KB Issue
SQL Server Error 80040e14 is a common error; however, when you encounter SQL statements with invalid characters, it can lead you to look for something that is not there.
Issue Details
when writing out your sql statements, you have to make sure that you type everything out properly. If not, then you could have an issue, such as the one that this article is about.

Microsoft OLE DB Provider for SQL Server error '80040e14'
Incorrect syntax near '@P14'.
/File.asp, line 295
Recreate Issue
In this example, we have added a period between the last two ?
Copy
Search Site
Search Google
marks. This will cause the Incorrect syntax near
Copy
Search Site
Search Google
error.
Code Example
sql.commandtext="insert into table1 (col1, col2, col3, col4)values(?,?,?.?)"
Resolve Issue
Always make sure your code is correct by double-checking, and sometimes triple-checking, for misspelled words or invalid characters.
Code Example
sql.commandtext="insert into table1 (col1, col2, col3, col4)values(?,?,?,?)"