473,771 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Field Mapping tool for queries

Hi,

My boss is asking me to generate a column mapping report of all the
queries. Basically, we get our data from ORACLE. There's a queary that
create new table from ORACLE tables. Then, there are reports and
queries that uses the new table.

Is there an add in or tool that can generate mapping reports of the
queries.

Example:
========
Query 1:
Field1 --> from access.field1
Field2 --> from access.field2

make table query from oracle table to new table:
access.field1 --> from oracle_tbl.fiel d1
access.field2 --> from oracle_tbl.fiel d2

Better if it can map it straight to oracle source:
Field1 --> from oracle_tbl.fiel d1
Field2 --> from oracle_tbl.fiel d2

Thanks in advance!
Ross

Nov 13 '05 #1
26 2976
On 7 Dec 2004 10:24:11 -0800, te**@i-vibe.com wrote:
Hi,

My boss is asking me to generate a column mapping report of all the
queries. Basically, we get our data from ORACLE. There's a queary that
create new table from ORACLE tables. Then, there are reports and
queries that uses the new table.

Is there an add in or tool that can generate mapping reports of the
queries.

Example:
========
Query 1:
Field1 --> from access.field1
Field2 --> from access.field2

make table query from oracle table to new table:
access.field 1 --> from oracle_tbl.fiel d1
access.field 2 --> from oracle_tbl.fiel d2

Better if it can map it straight to oracle source:
Field1 --> from oracle_tbl.fiel d1
Field2 --> from oracle_tbl.fiel d2

Thanks in advance!
Ross

Hi
Sorry don't understand whether you are looking for a schema-type map
or whether you need to track the underlying source objects for queries
which have AS clauses.

The DAO properties sourcefield, sourcetable do the latter if query
fields are not expressions (but can give funny answers if they are).
Don't think this functionality is is in ADO.

If you boss likes reports he may be interested in FMS Total Access
analyser which "contains over 300 reports" see www.fmsinc.com

David


Nov 13 '05 #2
Thanks for the reply,

I guess I made my statement complicated.
I just want to see all the quey structure and put it on excel to see
which tables and fields are used.

I saw the use of MsysQueries and MSysObjects, but it does not show the
fields that are not marked to show in the query.

The thing is, i'm still waiting for admin access to my station before I
can install the FMS demo. Can FMS TA do what I need?

Temporarily, does anyone knows how to do what I need with a macro or
VBscript or a shareware?

Thanks.
Ross

Nov 13 '05 #3
Thanks for the reply,

I guess I made my statement complicated.
I just want to see all the quey structure and put it on excel to see
which tables and fields are used.

I saw the use of MsysQueries and MSysObjects, but it does not show the
fields that are not marked to show in the query.

The thing is, i'm still waiting for admin access to my station before I
can install the FMS demo. Can FMS TA do what I need?

Temporarily, does anyone knows how to do what I need with a macro or
VBscript or a shareware?

Thanks.
Ross

Nov 13 '05 #4
te**@i-vibe.com wrote:
Temporarily, does anyone knows how to do what I need with a macro or
VBscript or a shareware?


Try NavQueries from my site

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #5
Thanks for this one. Your form is quite neat. It shows the fields and
the tables.

But it won't generate the report for all of the queries. I have to do a
cut and paste one by one which is what i'm trying to avoid. Our DB has
a lot of queries.

But thanks for your code.

Nov 13 '05 #6
By the way, can you tell me how you extracted the exact queries from
NavQueries?

Thanks.
Rosss

Nov 13 '05 #7
te**@i-vibe.com wrote:
By the way, can you tell me how you extracted the exact queries from
NavQueries?


What do you mean?

I question the MSysObjects table for all queries; I wrote my own
routines to analyze the call structure.

I could try to create something that takes the SELECT apart so you get
all columns in a query.

Getting all SQL statements is easy:

sub DumpQueries
dim db as database
dim qd as querydef
set db=currentdb
for each qd in db.querydefs
debug.print qd.sql
next
set db=nothing
end sub

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #8
On Wed, 08 Dec 2004 20:08:20 +0100, Bas Cost Budde
<b.*********@he uvelqop.nl> wrote:
te**@i-vibe.com wrote:
By the way, can you tell me how you extracted the exact queries from
NavQueries?


What do you mean?

I question the MSysObjects table for all queries; I wrote my own
routines to analyze the call structure.

I could try to create something that takes the SELECT apart so you get
all columns in a query.

Getting all SQL statements is easy:

sub DumpQueries
dim db as database
dim qd as querydef
set db=currentdb
for each qd in db.querydefs
debug.print qd.sql
next
set db=nothing
end sub


It is not neccessary to parse the SQL. QueryDefs do have a Fields
collection:

Sub DumpQueries()
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Dim fld As DAO.Field

Set db = CurrentDb
For Each qd In db.QueryDefs
Debug.Print qd.Name
For Each fld In qd.Fields
Debug.Print " " & fld.Name
Next
Next
Set db = Nothing
End Sub

Greetings
Matthias Kläy
--
www.kcc.ch
Nov 13 '05 #9
On Wed, 08 Dec 2004 20:23:05 +0100, Matthias Klaey <mp**@hotmail.c om>
wrote:
On Wed, 08 Dec 2004 20:08:20 +0100, Bas Cost Budde
<b.*********@h euvelqop.nl> wrote:
te**@i-vibe.com wrote:
By the way, can you tell me how you extracted the exact queries from
NavQueries?


What do you mean?

I question the MSysObjects table for all queries; I wrote my own
routines to analyze the call structure.

I could try to create something that takes the SELECT apart so you get
all columns in a query.

Getting all SQL statements is easy:

sub DumpQueries
dim db as database
dim qd as querydef
set db=currentdb
for each qd in db.querydefs
debug.print qd.sql
next
set db=nothing
end sub


It is not neccessary to parse the SQL. QueryDefs do have a Fields
collection:

Sub DumpQueries()
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Dim fld As DAO.Field

Set db = CurrentDb
For Each qd In db.QueryDefs
Debug.Print qd.Name
For Each fld In qd.Fields
Debug.Print " " & fld.Name
Next
Next
Set db = Nothing
End Sub

Greetings
Matthias Kläy
--
www.kcc.ch


-and you can add the sourcetable and sourcefield to this. useful when
fields have been renamed, though these properties sometimes name one
field from an expression.
David

Nov 13 '05 #10

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

Similar topics

2
1656
by: | last post by:
Hi! I post this text 1 year ago. But no one really could give me an answer. This is the text that I posted long time ago: I have a fundamental question about The way .NET handles the object orientated way of Persistence. I am coming from JAVA and WebObjects (Apple) World and I am looking for a convenient way of working
0
1126
by: Dave Karmens | last post by:
Does anyone have an example of field mapping? I am trying to write an app that reads a .csv file and then allows a user to map those .csv fields to existing SQL fields... I have the reading of the .csv & writing to SQL, but hit the wall trying to get a mapping process to work... Ideally, I would check off a field from the csv and check off a corresponding field in the sql field then hit a map button and it would
4
2754
by: Ashish Kanoongo | last post by:
Does anyone have an example of field mapping? I am trying to write an app that reads a .csv file and then allows a user to map those .csv fields to existing SQL fields... I have the reading of the .csv & writing to SQL, but hit the wall trying to get a mapping process to work...
2
4901
by: David Thielen | last post by:
Hi; I have a small XML file that I need to read/change from my app. Is there some easy way to map from XML to my objects so I can just read it in to my objects, change the objects as needed, then write the whole thing back out? thanks - dave david@at-at-at@windward.dot.dot.net
0
9619
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
9454
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
10103
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...
1
10038
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
9911
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
7460
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
6713
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
5354
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...
1
4007
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 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.