473,671 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connection.Open Schema

I have a small VB code which retrives the table names from the access DSN.

my code is something like this

Set objRs = objConn.OpenSch ema(adSchemaTab les)

If objRs("TABLE_TY PE") = "TABLE" or objRs("TABLE_TY PE") = "TABLE" Then
'do something
end if

I want to retrieve all the queries from theaccess DSN, whats the proper
schemaEnum for this...

thanks in advance
Nov 21 '05 #1
4 4742
"abcd" <ab**@abcd.co m> schrieb
I have a small VB code which retrives the table names from the
access DSN.

my code is something like this

Set objRs = objConn.OpenSch ema(adSchemaTab les)

If objRs("TABLE_TY PE") = "TABLE" or objRs("TABLE_TY PE") = "TABLE"
Then 'do something
end if

I want to retrieve all the queries from theaccess DSN, whats the
proper schemaEnum for this...

Have a look at the language independent ADO.Net group:
microsoft.publi c.dotnet.framew ork.adonet
This is a VB.Net group. As you wrote "Set", you're probably using VB6. VB6
groups can be found @ microsoft.publi c.vb.*
Armin

Nov 21 '05 #2
ooops accidently I posted here ...my apology...

"Armin Zingler" <az*******@free net.de> wrote in message
news:eh******** ******@tk2msftn gp13.phx.gbl...
"abcd" <ab**@abcd.co m> schrieb
I have a small VB code which retrives the table names from the
access DSN.

my code is something like this

Set objRs = objConn.OpenSch ema(adSchemaTab les)

If objRs("TABLE_TY PE") = "TABLE" or objRs("TABLE_TY PE") = "TABLE"
Then 'do something
end if

I want to retrieve all the queries from theaccess DSN, whats the
proper schemaEnum for this...

Have a look at the language independent ADO.Net group:
microsoft.publi c.dotnet.framew ork.adonet
This is a VB.Net group. As you wrote "Set", you're probably using VB6. VB6
groups can be found @ microsoft.publi c.vb.*
Armin

Nov 21 '05 #3
Armin,

Have a look at the language independent ADO.Net group:
microsoft.publi c.dotnet.framew ork.adonet

Are you sure of that, I have the idea that it is not ADONET however ADO

probably
microsoft.publi c.dotnet.langua ges.vb.data

is than in my opinion a better newsgroup
(Most questions are answered in that newsgroup, this message is of course as
well for the OP)

:-))

Cor
Nov 21 '05 #4
"Cor Ligthert [MVP]" <no************ @planet.nl> schrieb
Armin,

Have a look at the language independent ADO.Net group:
microsoft.publi c.dotnet.framew ork.adonet

Are you sure of that, I have the idea that it is not ADONET however
ADO

probably
microsoft.publi c.dotnet.langua ges.vb.data

is than in my opinion a better newsgroup
(Most questions are answered in that newsgroup, this message is of
course as well for the OP)

:-))


"As you wrote "Set", you're probably using VB6. VB6 groups can be found @
microsoft.publi c.vb.*"
Armin

Nov 21 '05 #5

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

Similar topics

1
1746
by: Stuart | last post by:
Is there any way to attain the names of the tables in a database from using either ADO connection or ODBC or any other type of connection. The reason I wish to do this is so that I can display all the information in table (field names and values - this piece of code works) from a dynamic SQL statement Here is what I am trying to do: <% Connect to my_table.
2
3598
by: Dan | last post by:
Environment: Windows XP Pro, IIS 5, SQL Server 2000 oConnectionString = 'driver={SQL Server};server=(local);uid=sa;pwd=;database=mydatabase;' Relationships are setup on all the tables. EOF is returned for the recordset when using: oRecordSet = oConnection.OpenSchema( adSchemaForeignKeys ) This works when using an Access2000 database, but not for SQL Server 2000.
3
3922
by: G-Fit | last post by:
Hello group, I have several servers hosting SQL databases. On each of them, I have several databases. All those databases have the same structure (even those on different servers), only the data changes. I made a winforms application that allows me to manage those databases easily, and used several SqlDataAdapter to achieve this, all of them filling the same Dataset which has relations, and this Dataset being the DataSource of a...
4
2041
by: Irena | last post by:
Hi all there, I have developed an ASP script that is able to read the structure of an Ms Access database ( via object objConn.OpenSchema(27) ) and to identify the foreign Keys columns and tables (via rstSchema("FK_COLUMN_NAME") and rstSchema("FK_TABLE_NAME")). I wonder whether there is a way to read the displayed field name of the foreign key too.
0
2730
by: Denis ERCHOFF | last post by:
Hi, The OpenSchema method (ADODB._Connection object) seems to work fine in VB but not with C# .... Why? Someone have a solution? My code :
11
2427
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a database through Connection.open() method, and I do not use Connection.close() method, will garbage collector collect the connection object just because i am not using it any more. 2) I am using a dataset, in which i make some modifications to the...
6
2341
by: Chris Szabo | last post by:
I've created a data access layer for a .NET web application. I'm using C# and framework 1.1. I'm getting an error from time to time when I close a connection saying: System.InvalidOperationException: A connection pooling error has occurred. It doesn't happen each time, the exception is thrown randomly. The big problem is that the connection is left active in the pool. After a short period of time, the pool is filled up and people...
20
3272
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how many connection has been used ? 2. If the maximum pool size has been reached, what happens when I call the method Open to open the connection ? Will I get an error ? MSDN says the request is queued, but will I get an error in the open method ? ...
0
8476
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
8393
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
8914
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...
1
8598
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8670
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...
1
6223
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
5695
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4224
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
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.