473,721 Members | 2,241 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 4746
"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
1747
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
3603
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
3937
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
2043
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
2731
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
2434
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
2343
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
3288
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
8858
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
8738
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
9376
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
9230
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
8026
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
6678
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
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2146
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.