473,405 Members | 2,279 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,405 software developers and data experts.

connection.OpenSchema

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

my code is something like this

Set objRs = objConn.OpenSchema(adSchemaTables)

If objRs("TABLE_TYPE") = "TABLE" or objRs("TABLE_TYPE") = "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 4726
"abcd" <ab**@abcd.com> 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.OpenSchema(adSchemaTables)

If objRs("TABLE_TYPE") = "TABLE" or objRs("TABLE_TYPE") = "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.public.dotnet.framework.adonet
This is a VB.Net group. As you wrote "Set", you're probably using VB6. VB6
groups can be found @ microsoft.public.vb.*
Armin

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

"Armin Zingler" <az*******@freenet.de> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
"abcd" <ab**@abcd.com> 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.OpenSchema(adSchemaTables)

If objRs("TABLE_TYPE") = "TABLE" or objRs("TABLE_TYPE") = "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.public.dotnet.framework.adonet
This is a VB.Net group. As you wrote "Set", you're probably using VB6. VB6
groups can be found @ microsoft.public.vb.*
Armin

Nov 21 '05 #3
Armin,

Have a look at the language independent ADO.Net group:
microsoft.public.dotnet.framework.adonet

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

probably
microsoft.public.dotnet.languages.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.public.dotnet.framework.adonet

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

probably
microsoft.public.dotnet.languages.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.public.vb.*"
Armin

Nov 21 '05 #5

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

Similar topics

1
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...
2
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...
3
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...
4
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...
0
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
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...
6
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: ...
20
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...
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
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
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
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.