Hi
I am using MS Access 2000 and want to open the Schema to know about
Table's structures like column names, data types, primary keys etc.
In SQL Server, we use OpenSchema method of Connection object,
in Oracle, we use "desc table" query,
in MySQL, we use "describe table" query,
in MS Access, we use ???????.
I found a method in this groups to use following query
"SELECT * FROM INFORMATION_SCH EMA.TABLES" for all tables' schema
but it gives following error
"could not find file 'C:\Program Files\Microsoft Visual Studio\VB98\
INFORMATION_SCH EMA.mdb'"
Does this database file gets installed by default or require custom
configuration or this is a wrong method??
HELP
Thanks
Regards 3 14172
Jet does not provide for access to a textual representation of the schema. I
don't know if it provides API access via ADOX yet (try it and find out), but
it does privovide API access via DAO, and I've used it in real world
applications before.
Look at the DAO help or on MSDN for more details. You'll see that there are
collections of Tabledefs, Querydefs, Relations, etc. You might have to look
at the Containers and Documents collections to get some of the information you
may need, but it's all there in one form or another.
On 26 Jul 2004 02:39:25 -0700, at*******@hotma il.com (Atif) wrote: Hi
I am using MS Access 2000 and want to open the Schema to know about Table's structures like column names, data types, primary keys etc.
In SQL Server, we use OpenSchema method of Connection object, in Oracle, we use "desc table" query, in MySQL, we use "describe table" query, in MS Access, we use ???????.
I found a method in this groups to use following query "SELECT * FROM INFORMATION_SCH EMA.TABLES" for all tables' schema but it gives following error
"could not find file 'C:\Program Files\Microsoft Visual Studio\VB98\ INFORMATION_SC HEMA.mdb'"
Does this database file gets installed by default or require custom configuratio n or this is a wrong method??
HELP
Thanks Regards
Have you tried using the OpenSchema method of the connection object.
e.g.
Function testschema()
Dim loCon As ADODB.Connectio n
Dim loRst As ADODB.Recordset
Set loCon = Application.Cur rentProject.Con nection
Set loRst = loCon.OpenSchem a(adSchemaTable s, Array(Empty, Empty, Empty,
"TABLE"))
With loRst
Do Until .EOF
Debug.Print .Fields("TABLE_ NAME")
.MoveNext
Loop
.Close
End With
Set loRst = Nothing
loCon.Close
Set loCon = Nothing
End Function
--
Terry Kreft
MVP Microsoft Access
"Atif" <at*******@hotm ail.com> wrote in message
news:3c******** *************** ***@posting.goo gle.com... Hi
I am using MS Access 2000 and want to open the Schema to know about Table's structures like column names, data types, primary keys etc.
In SQL Server, we use OpenSchema method of Connection object, in Oracle, we use "desc table" query, in MySQL, we use "describe table" query, in MS Access, we use ???????.
I found a method in this groups to use following query "SELECT * FROM INFORMATION_SCH EMA.TABLES" for all tables' schema but it gives following error
"could not find file 'C:\Program Files\Microsoft Visual Studio\VB98\ INFORMATION_SCH EMA.mdb'"
Does this database file gets installed by default or require custom configuration or this is a wrong method??
HELP
Thanks Regards
thaks for replying BUT
OpenSchema(adSc hemaTables) gives Tables' names, datatypes and other
things except PrimaryKeys
and when i use
OpenSchema(adSc hemaPrimaryKeys ) it results out with this table
"MSysAccessObje cts" and PK_NAME="AOInde x"
and when i tried to open "MSysAccessObje cts" it gives binary data(as i
think) which is not understandable.
What i require is to know what are the primary keys of a table.
Thanks
Regards This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wooks |
last post by:
<?xml version='1.0'?>
<userlogin xmlns="urn:faster:userlogin"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<login>mick</login>
<password>brown</password>
</userlogin>
Above is my schema instance.
|
by: C. M. Sperberg-McQueen |
last post by:
wooks (wookiz@hotmail.com) wrote:
> <?xml version='1.0'?>
> <userlogin xmlns="urn:faster:userlogin"
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
> <login>mick</login>
> <password>brown</password>
> </userlogin>
> Above is my schema instance.
|
by: Gordon Dickens |
last post by:
I have target xml to generate from schema. All of the XML instances
have the same global element i.e. <base>. I would like to combine all
of the schemas into a single schema where I could generate any of the
specific instances.
sample schema one:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="base">
|
by: Vinay |
last post by:
Hi
I have a corrupt word file. I am able to open it with the code given below
tr
Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo(
pInfo.UseShellExecute = Tru
pInfo.FileName = "c:\corrupt.doc
Dim p As Process = System.Diagnostics.Process.Start(pInfo
Catch ex As Exceptio
MsgBox(ex.ToString
End Tr
|
by: Rajesh Jain |
last post by:
I Have 2 separate schemas.
--------------Schema 1 is defined as below-----------
<xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Loan">
<xs:complexType>
<xs:sequence>
<xs:element name="Borrower" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="BorrID" use="required">
| |
by: Mike Wilson |
last post by:
Is there a way to open an OLE DB database from within Access?
I would like to use the Access GUI with its table and query
explorer to examine a database only available through an OLEDB
provider interface.
I have seen several references on how to open an OLE DB
database through VBA/ADO code but I wouldn't know how to go
from there to actually have the database available in the
Access GUI...
|
by: Derek |
last post by:
I am creating an intranet using Visual Web Developer Express Edition.
Everything has been working OK until yesterday when I started getting 62
messages all beginning "Could not find schema information for the".
I am using Cassini as the web server on my PCand I can still run my site
from within VWD. Does anyone know what I have done to cause these messages to
appear?
Could not find schema information for the element...
|
by: Michel |
last post by:
Hi,
I need to know if there is anyway of opening a database only for reading
data, is an Access database, the problem is that if the file is open, the
connection fails, saying that the file is already in use.
Can I open the database in a read only mode, or something like that???
Thanxs in advanced.
Michel
|
by: Mad Scientist Jr |
last post by:
>From an asp.net web page I want the user to open the results of a SQL
query in Excel, as automatically as possible (ie not having to loop
through columns, rows, in code).
For this, dataset.writexml works great
(got the code from
http://forums.devx.com/archive/index.php/t-57273.html )
The only question I have is, when Excel opens up, it isn't the view I
would prefer. It opens as a read-only workbook, I would prefer as an
|
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,...
|
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...
| |
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...
|
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,...
|
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...
|
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();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |