473,659 Members | 2,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MyOLEDB Doesn't support commands like SHOW FIELDS, SHOW TABLES

My code is shown below, I can select * from employees but I cannot get
any data back from SHOW FIELDS, I do not receive an error, in fact,
something is returned but I'm not sure what. I can execute the
command:

SHOW FIELDS FROM test.employees

in the Control Center just fine, even cmd.ExecuteRead er will enter
reader.Read() once, something is returned but what does it look like?

=============== =============

OleDbConnection cn = new OleDbConnection (@"Provider=MyS QLProv;Data
Source=test;DB= test;UID=;PWD=; PORT=3306");

cn.Open();
OleDbCommand cmd = new OleDbCommand("S HOW FIELDS FROM test.employees" ,
cn);
cmd.CommandType = CommandType.Tex t;
DataTable metaData = new DataTable();
OleDbDataAdapte r ad = new OleDbDataAdapte r();
ad.SelectComman d = cmd;
ad.Fill(metaDat a);

=============== ============
Jul 19 '05 #1
2 4893
Wow - looks like visual basic.
switch to Visual FoxPro, establish your connection handle via your ole db
hook -
and then use the sqltables() and sqlcolumns() functions.
works very well.. Course - you'd be changing your programming language
completely to something
that is easier for manipulating data - and thats not a bad thing..
hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex****** **@efgroup.net
Free Satellite Receivers and installation ->
http://www.vmcsatellite.com/?aid=58456
mySql / VFP / MS-SQL
"Mike" <de**********@h otmail.com> wrote in message
news:95******** *************** ***@posting.goo gle.com...
My code is shown below, I can select * from employees but I cannot get
any data back from SHOW FIELDS, I do not receive an error, in fact,
something is returned but I'm not sure what. I can execute the
command:

SHOW FIELDS FROM test.employees

in the Control Center just fine, even cmd.ExecuteRead er will enter
reader.Read() once, something is returned but what does it look like?

=============== =============

OleDbConnection cn = new OleDbConnection (@"Provider=MyS QLProv;Data
Source=test;DB= test;UID=;PWD=; PORT=3306");

cn.Open();
OleDbCommand cmd = new OleDbCommand("S HOW FIELDS FROM test.employees" ,
cn);
cmd.CommandType = CommandType.Tex t;
DataTable metaData = new DataTable();
OleDbDataAdapte r ad = new OleDbDataAdapte r();
ad.SelectComman d = cmd;
ad.Fill(metaDat a);

=============== ============

Jul 19 '05 #2
Wow - looks like visual basic.
switch to Visual FoxPro, establish your connection handle via your ole db
hook -
and then use the sqltables() and sqlcolumns() functions.
works very well.. Course - you'd be changing your programming language
completely to something
that is easier for manipulating data - and thats not a bad thing..
hth - mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex****** **@efgroup.net
Free Satellite Receivers and installation ->
http://www.vmcsatellite.com/?aid=58456
mySql / VFP / MS-SQL
"Mike" <de**********@h otmail.com> wrote in message
news:95******** *************** ***@posting.goo gle.com...
My code is shown below, I can select * from employees but I cannot get
any data back from SHOW FIELDS, I do not receive an error, in fact,
something is returned but I'm not sure what. I can execute the
command:

SHOW FIELDS FROM test.employees

in the Control Center just fine, even cmd.ExecuteRead er will enter
reader.Read() once, something is returned but what does it look like?

=============== =============

OleDbConnection cn = new OleDbConnection (@"Provider=MyS QLProv;Data
Source=test;DB= test;UID=;PWD=; PORT=3306");

cn.Open();
OleDbCommand cmd = new OleDbCommand("S HOW FIELDS FROM test.employees" ,
cn);
cmd.CommandType = CommandType.Tex t;
DataTable metaData = new DataTable();
OleDbDataAdapte r ad = new OleDbDataAdapte r();
ad.SelectComman d = cmd;
ad.Fill(metaDat a);

=============== ============

Jul 19 '05 #3

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

Similar topics

5
5016
by: Ghazan Haider | last post by:
Hi all, I have a server from which keeping clients off for maintenance is difficult. They all have VPN connections and can be online any time they want, and uptime as always is important. Now I need to run dbcc shrinkdatabase, checkdb and of course checkpoint right before backups, and when the log seems to grow. I just tried dbcc checkdb on my home computer and apparently its really io and CPU intensive on this dual P3. Can users be...
44
3873
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with other browsers (I checked it under Konqueror). Thank you in advance for your help. Regards. /Mariusz <HTML>
1
2990
by: snOOp | last post by:
I am trying to combine the data from two similar tables into one query, but I need for all of the records from both tables to show up and I want the ones that have matching 'emplid' to be combined into one record showing both the 'empstatus' and 'strole' fields. The following query works, but does not combine the matching records: SELECT givenname, sn, empstatus, emplid, ssn FROM dbo_EmpData WHERE empstatus='A' UNION ALL SELECT...
1
2682
by: xtra | last post by:
Hi Folk I have written a module that allows you to type a bunch of commands in the immediate window, for quick access to information when you are creating VB code. Here it is, it may be helpful to you (I find it pretty fast and friendly).... Some of it is specific to my database (I left out many as well which were too specific), so you will have to rewrite it for yours, but you may find it useful.... Any questions, please ask. Typing...
149
25124
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
0
2125
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops working when I include data entry fields to the form: I click on Delete or Edit inside of DataGrid and get this error: "Error: Object doesn't support this property or method" If I remove data entry fields from the form - DataGrid allows to...
10
1632
by: cj | last post by:
I have lots of tables to copy from one server to another. The new tables have been created to match the old ones. I practiced with one table. I created the select command (select * from tableA) and Visual Basic .NET created an update command--very long as there are a lot of fields. Now there are more large tables to copy. Is there an easy way to have Visual Basic create these update commands itself for the other tables with out...
5
5586
by: =?Utf-8?B?RGVubmlz?= | last post by:
I have installed MySql and am trying to use it in VB.Net 2003 using the MyOleDb driver. However, from all I can find, MyOleDb only works on VB.Net 2005. Does anyone know if this is correct or is it supposed to work in VB.Net 2003 as well? -- Dennis in Houston
3
4678
by: Cless | last post by:
Hi everyone, Given a connection string, is there a way to retrieve all database objects from a database. I already know through the MSDN documentation of .NET of how to enumerate all database instances of sqlserver 2000 and up from a local network, but unfortunately I am yet to find an example of how to get all tables from a given database. Regards,
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8629
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.