Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

[Microsoft] [ODBC Text Driver] Too few parameters. Expected:1


TechKnowledge Content

Question:

Using the Advanced ODBC query with the SQL statement typed in, when exiting the query a"[Microsoft] [ODBC Text Driver] Too few parameters. Expected:1" error is returned. What is causing this?


Answer:

The statement that was being used was: SELECT *.* from vendors.txt WHERE [Vendor ID] = AAAAA


The error was caused because the value for the WHERE clause was not enclosed in quotes. OnceAAAAA was changed to 'AAAAA' the query was saved without error. Other incorrect formatting like extra spaces in the SQL statement can also cause this error.





This article was TechKnowledge Document ID:9704

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbretire, kb

↑ Back to the top

Article Info
Article ID : 867225
Revision : 1
Created on : 1/7/2017
Published on : 10/15/2011
Exists online : False
Views : 74