Microsoft Visual Basic Runtime Error 80040e14 in ODBC-based Application
Hi guys,
I am using ODBC canonical time functions TIMESTAMPADD and TIMESTAMPDIFF in a data modification query from in an ODBC-based client application. Following error occurs which causes the SQL batch to fail to compile and execute:
“Run-time error ‘-2147217900 (80040e14):
[Microsoft][ODBC SQL Server Driver][SQL Server] The name ‘#28’ is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted.”
If anyone can help me in figuring out this issue, I will be highly grateful.
Thanks