473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ODBC Driver error

Hi everbody,

Getting this strange error all of a sudden.

Microsoft OLE DB Provider for ODBC Drivers. error 80040e21
ODBC driver doesn't support the requested properties.

and the line is:

tRST.Open "SELECT id FROM " & sTable & " WHERE " & sField & " = '" & vValue
& "'", oConn, adOpenKeyset, adLockReadOnly

I'm using vbscript and this was working before I changed some tables and
relationships, which should not affect the above line though.

Any ideas?

Ivan
Jul 21 '05 #1
4 1882
As always. put your SELECT statement into a variable first, then
response.write the variable to veryify syntax

Or just hardcode a simpler SELECT statment, and verify that it's working.

Jeff
"Ivan Debono" <iv******@hotmail.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
Hi everbody,

Getting this strange error all of a sudden.

Microsoft OLE DB Provider for ODBC Drivers. error 80040e21
ODBC driver doesn't support the requested properties.

and the line is:

tRST.Open "SELECT id FROM " & sTable & " WHERE " & sField & " = '" & vValue & "'", oConn, adOpenKeyset, adLockReadOnly

I'm using vbscript and this was working before I changed some tables and
relationships, which should not affect the above line though.

Any ideas?

Ivan

Jul 21 '05 #2
The SQL statement is correct.

When I remark from adOpenKeySet onwards I get an error that I don't have
read permissions on the table. Locally I'm using a different MDW than the
standard one, but I gave read permissions to the users group on all tables.

Ivan
"Jeff Dillon" <je**@removeemergencyreporting.com> schrieb im Newsbeitrag
news:uQ**************@TK2MSFTNGP10.phx.gbl...
As always. put your SELECT statement into a variable first, then
response.write the variable to veryify syntax

Or just hardcode a simpler SELECT statment, and verify that it's working.

Jeff
"Ivan Debono" <iv******@hotmail.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
Hi everbody,

Getting this strange error all of a sudden.

Microsoft OLE DB Provider for ODBC Drivers. error 80040e21
ODBC driver doesn't support the requested properties.

and the line is:

tRST.Open "SELECT id FROM " & sTable & " WHERE " & sField & " = '" &

vValue
& "'", oConn, adOpenKeyset, adLockReadOnly

I'm using vbscript and this was working before I changed some tables and
relationships, which should not affect the above line though.

Any ideas?

Ivan


Jul 21 '05 #3
What database are you using? If file based, set Everyone Full Control on the
directory where it resides, as a test, as well as your TEMP/TMP directories

Jeff
"Ivan Debono" <iv******@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
The SQL statement is correct.

When I remark from adOpenKeySet onwards I get an error that I don't have
read permissions on the table. Locally I'm using a different MDW than the
standard one, but I gave read permissions to the users group on all tables.
Ivan
"Jeff Dillon" <je**@removeemergencyreporting.com> schrieb im Newsbeitrag
news:uQ**************@TK2MSFTNGP10.phx.gbl...
As always. put your SELECT statement into a variable first, then
response.write the variable to veryify syntax

Or just hardcode a simpler SELECT statment, and verify that it's working.
Jeff
"Ivan Debono" <iv******@hotmail.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
Hi everbody,

Getting this strange error all of a sudden.

Microsoft OLE DB Provider for ODBC Drivers. error 80040e21
ODBC driver doesn't support the requested properties.

and the line is:

tRST.Open "SELECT id FROM " & sTable & " WHERE " & sField & " = '" &

vValue
& "'", oConn, adOpenKeyset, adLockReadOnly

I'm using vbscript and this was working before I changed some tables and relationships, which should not affect the above line though.

Any ideas?

Ivan



Jul 21 '05 #4
It's working again :)

"Jeff Dillon" <je**@removeemergencyreporting.com> schrieb im Newsbeitrag
news:Os**************@TK2MSFTNGP14.phx.gbl...
What database are you using? If file based, set Everyone Full Control on
the
directory where it resides, as a test, as well as your TEMP/TMP
directories

Jeff
"Ivan Debono" <iv******@hotmail.com> wrote in message
news:ug**************@TK2MSFTNGP10.phx.gbl...
The SQL statement is correct.

When I remark from adOpenKeySet onwards I get an error that I don't have
read permissions on the table. Locally I'm using a different MDW than the
standard one, but I gave read permissions to the users group on all

tables.

Ivan
"Jeff Dillon" <je**@removeemergencyreporting.com> schrieb im Newsbeitrag
news:uQ**************@TK2MSFTNGP10.phx.gbl...
> As always. put your SELECT statement into a variable first, then
> response.write the variable to veryify syntax
>
> Or just hardcode a simpler SELECT statment, and verify that it's working. >
> Jeff
> "Ivan Debono" <iv******@hotmail.com> wrote in message
> news:Oa**************@TK2MSFTNGP11.phx.gbl...
>> Hi everbody,
>>
>> Getting this strange error all of a sudden.
>>
>> Microsoft OLE DB Provider for ODBC Drivers. error 80040e21
>> ODBC driver doesn't support the requested properties.
>>
>> and the line is:
>>
>> tRST.Open "SELECT id FROM " & sTable & " WHERE " & sField & " = '" &
> vValue
>> & "'", oConn, adOpenKeyset, adLockReadOnly
>>
>> I'm using vbscript and this was working before I changed some tables and >> relationships, which should not affect the above line though.
>>
>> Any ideas?
>>
>> Ivan
>>
>>
>
>



Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: avihay | last post by:
Hello, Using .NET 1.1 and MS visual studio 2003 we are failing to close an ODBC Connection to an ODBC driver using system.data.odbc. We are getting the following Error from the Microsoft odbc...
1
by: simianphile | last post by:
OK, I had a problem that I've now fixed but I can't really understand what was causing it in the first place. I have an intranet site that uses basic authentication to allow users to view and...
2
by: uli2003wien | last post by:
Dear group, we are dealing with some very specific problems with ODBC, where a connection from SQL-Server to Mysql works with ODBC-driver 3.51.10.00 and does NOT work with ODBC-driver...
3
by: Andrew McGregor | last post by:
Hi, I am trying to get a VB.NET application to connect to a local Oracle 9i Lite database. What is the correct form for a connect string? cn = New...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
by: Greg Strong | last post by:
Hello All, Is there any way to close an ODBC connection via DSN without completely closing the Access front-end? I'm doing some testing with using Access as a front-end to Oracle 10g Express...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
3
by: zombiechewtoy | last post by:
I'm having trouble making an ODBC connection using VB.NET 2005. I have tried nearly every connection string found on connectionstrings.com, in almost every format I can think of. I have tried...
0
by: sudhaoncyberworld | last post by:
Dear Techies, I do have small issue on connecting oracle server from .net This is the code snippet public string strConString = "Driver={Microsoft ODBC for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.