473,416 Members | 1,774 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,416 software developers and data experts.

ODBC: SQLTables does not return data for an Access database?

(also posted to microsoft.public.access.odbcclientsvr but no reply so
far: problem concerns ODBC->MS Access)

I have some ODBC code that I'm testing against various underlying
databases. The code was developed against MySQL but now I'm getting
other common options to work. I'm having trouble with Access - even the
sample code (intended for Access) is giving some odd results...

My setup: Windows 2000 running Access 2000. Using ODBC to read the local
Access db.

I'm using SQLTables to find out if a table exists, and how many tables
are in the database.

But when I call SQLTables I get an "ok". The bind for the column holding
the table name is "ok" and then the first SQLFetch SQL_NO_DATA - ie. no
rows. The code works with a local MySQL database. I've copied sample
code from "ODBC 3.5 Developer's Guide" (Roger E. Sanders) - same result.

I've just tried the relevant sample program in this book. This uses the
Access Northwind sample database. No change to the code, created the
User DSN as per the book's instructions. Same result - each call to
SQLTables returns zero rows of information. But presumably it worked for
Mr. Sanders? Also I'm using a more uptodate version of
Access,Windows/etc that he uses (NT4 and Access 97 iirc).

Has anyone else come across this problem? Anything to look for? It
looks like it worked at one time?

Also a lot of the parameters for SQLGetStmtAttr appear to return
"unsupported" but I have reached the point where I can make a legitimate
test of that, yet...

--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
Dec 7 '05 #1
7 2540
Richard, I have no idea what 'SQLTables' might be. Judging from the lack of
response to your other post, it looks like I'm not alone. Perhaps you might
improve your chances of getting help if you explained that.

--
Brendan Reynolds

"Richard Marsden" <no*****@nospam.winwaed.com> wrote in message
news:pO********************@comcast.com...
(also posted to microsoft.public.access.odbcclientsvr but no reply so far:
problem concerns ODBC->MS Access)

I have some ODBC code that I'm testing against various underlying
databases. The code was developed against MySQL but now I'm getting other
common options to work. I'm having trouble with Access - even the sample
code (intended for Access) is giving some odd results...

My setup: Windows 2000 running Access 2000. Using ODBC to read the local
Access db.

I'm using SQLTables to find out if a table exists, and how many tables are
in the database.

But when I call SQLTables I get an "ok". The bind for the column holding
the table name is "ok" and then the first SQLFetch SQL_NO_DATA - ie. no
rows. The code works with a local MySQL database. I've copied sample code
from "ODBC 3.5 Developer's Guide" (Roger E. Sanders) - same result.

I've just tried the relevant sample program in this book. This uses the
Access Northwind sample database. No change to the code, created the User
DSN as per the book's instructions. Same result - each call to SQLTables
returns zero rows of information. But presumably it worked for Mr.
Sanders? Also I'm using a more uptodate version of Access,Windows/etc that
he uses (NT4 and Access 97 iirc).

Has anyone else come across this problem? Anything to look for? It looks
like it worked at one time?

Also a lot of the parameters for SQLGetStmtAttr appear to return
"unsupported" but I have reached the point where I can make a legitimate
test of that, yet...

--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins

Dec 7 '05 #2
Pretty hard to comment without knowing what SQLTables does! How about
posting the code here?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Richard Marsden" <no*****@nospam.winwaed.com> wrote in message
news:pO********************@comcast.com...
(also posted to microsoft.public.access.odbcclientsvr but no reply so
far: problem concerns ODBC->MS Access)

I have some ODBC code that I'm testing against various underlying
databases. The code was developed against MySQL but now I'm getting
other common options to work. I'm having trouble with Access - even the
sample code (intended for Access) is giving some odd results...

My setup: Windows 2000 running Access 2000. Using ODBC to read the local
Access db.

I'm using SQLTables to find out if a table exists, and how many tables
are in the database.

But when I call SQLTables I get an "ok". The bind for the column holding
the table name is "ok" and then the first SQLFetch SQL_NO_DATA - ie. no
rows. The code works with a local MySQL database. I've copied sample
code from "ODBC 3.5 Developer's Guide" (Roger E. Sanders) - same result.

I've just tried the relevant sample program in this book. This uses the
Access Northwind sample database. No change to the code, created the
User DSN as per the book's instructions. Same result - each call to
SQLTables returns zero rows of information. But presumably it worked for
Mr. Sanders? Also I'm using a more uptodate version of
Access,Windows/etc that he uses (NT4 and Access 97 iirc).

Has anyone else come across this problem? Anything to look for? It
looks like it worked at one time?

Also a lot of the parameters for SQLGetStmtAttr appear to return
"unsupported" but I have reached the point where I can make a legitimate
test of that, yet...

--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins

Dec 7 '05 #3
Sorry, SQLTables is an ODBC function call!
It is used to query some table information. eg. what tables are available.
I must have been using ODBC too much and assumed that saying "ODBC"
implied...
Richard

--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
Dec 7 '05 #4
I don't have any personal experience with that, Richard, but here's a link
to Microsoft's documentation on support for the SQLTables function in the
Access ODBC driver ...

http://msdn.microsoft.com/library/de...ssqltables.asp

--
Brendan Reynolds

"Richard Marsden" <no*****@nospam.winwaed.com> wrote in message
news:hP******************************@comcast.com. ..
Sorry, SQLTables is an ODBC function call!
It is used to query some table information. eg. what tables are
available.
I must have been using ODBC too much and assumed that saying "ODBC"
implied...
Richard

--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins

Dec 7 '05 #5
Thanks for the link Brendan. I've bookmarked the next page up - it will
probably prove useful over the next few days!

Comparing what that page says to what I have in my book and the MS docs,
I tried a few options for the table types. Interestingly, the system
table option returns a list of tables, but none of the others do. Even
if I ask for all table types, I get an empty list!
I'm coding around it and marking it as "unsupported" for the
ODBC->Access combination, but this is less than ideal.
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins
Dec 8 '05 #6
richard marsden
"Richard Marsden" <no*****@nospam.winwaed.com> wrote in message
news:mI********************@comcast.com...
Thanks for the link Brendan. I've bookmarked the next page up - it will
probably prove useful over the next few days!

Comparing what that page says to what I have in my book and the MS docs,
I tried a few options for the table types. Interestingly, the system
table option returns a list of tables, but none of the others do. Even
if I ask for all table types, I get an empty list!
I'm coding around it and marking it as "unsupported" for the
ODBC->Access combination, but this is less than ideal.
--
Richard Marsden
Winwaed Software Technology, http://www.winwaed.com
http://www.mapping-tools.com for MapPoint tools and add-ins

Jan 2 '06 #7
Richard Marsden <no*****@nospam.winwaed.com> wrote in
news:mI********************@comcast.com:
I'm coding around it and marking it as "unsupported" for the
ODBC->Access combination, but this is less than ideal.


Post A2K, is it not the case that MS deprecates ODBC in favor of
ADO, especially for Access->SQL Server?

Surely you could easily provide the functionality via ADO for the
ODBC drivers that don't support the SQLTables method.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 2 '06 #8

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
6
by: serge calderara | last post by:
Dear all, Does any one have any idea why an sql statment with INNER JOIN syntax is working well with odbcprovider but not with Oledbprovider when accessing an access 2000 database? here is...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
1
by: Ralf Obst | last post by:
Hello, we get a message SQL0204N when trying to import tables from a DB2/VM into an MS Access database. The message text is: ... "DB2/VM SQL0204N 'SQLTables ' not defined ". When...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into...
4
by: weboweb | last post by:
Hello group, I hope I've come to the right place to post my question! I am trying to get the worksheet names from an excel file using ODBC, but for some reason I get SQL_NO_DATA error code...
4
by: datapro01 | last post by:
Running DB28.2 on AIX 5.2. I have two questions if its possible for anyone to assist. 1. Is it possible to make use of a 'Shadow Catalog' on DB2 UDB v8.2 on AIX? If so, how? Can anyone give...
3
by: ErwinMars | last post by:
I've used DB2 LUW V7 a long time ago. Now i'm back and installed DB2 V8.2.2 PE and CONNPE. The DB2 stuff like CC works fine. I can access the sample db and also select records. Than i've defined...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.