Are you saying you are using a Microsoft Access driver to connect to Microsof SQL Server?
Also, at least in MS Sql Server and MySQL the only time a select statement will work without a reference to a table is if you do something like this:
SELECT 'foo'
Executing this command will return the string literal value of foo as your result set in all other cases you need to specify where you are selecting data from so, for the sake of argument, humor me.
Change your SQL statement from:
SELECT DOCS_ID
to
SELECT DOCS_ID FROM DOCUMENT_STORE (assuming that Document_Store is the name of a table in the database you have supplied in your connection string.)
What does that do to your code?
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========