Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

MS SQL Server 2000 & Access 2010 Expand / Collapse
Author
Message
Posted Monday, February 13, 2012 8:55 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, April 28, 2014 10:45 AM
Points: 155, Visits: 251
I just started at a new company, so I am trying to find my way around there database and applications. I am having to do it on my own as they don't have the staff to sit with me, and the staff doesn't really to know what I need to find out anyway.

So here's the deal. We have a MS SQL Server 2000 database (will be upgrading to 2008 R2 in a couple of weeks), we have an "Application" written in Access 2010. The main application references the MS SQL DB, but then we have these "Mini-Applications" which are more for Reporting rather than changing of data. These "Report Applications" use Access DB, the tables are obviously populated somehow from the SQL DB but when it was written items where not named the same, table structures are not the same.

What I need to accomplish. I am supposed to be basically recreating their reporting in SQL Server RS 2008 (will get installed in a couple weeks with SQL 2008 R2), but I am not that savvy in Access (used it a few times 6-7 years ago but not to this extent.). I cannot figure out how to find what is populating the Access tables from the SQL tables.

I have tried:
1. Utilizing the MsysObjects and MsysQueries tables in Access I am trying to find anything referencing the tables in question, but am not quite finding what I am looking for.

2. I can go in design view of one of the reports and see the form that is being called, then I open the form and see what qry is being called, but that query doesn't tell me what populates the tables that are used in the query to create the report.

There are many different Access DBs set up for the many different Access Reporting Applications, so some of the reports/dbs actually reference others, so the Create/Insert queries/procedures could be anywhere. I have tried to go through all of them with the Msys tables, but still nothing.

If anyone can help me out or at least give me another option to try it would be much appreciated.



Respectfully,


K8
Software Developer/Data Analyst
Ozaukee, WI
Post #1251272
Posted Monday, February 13, 2012 9:34 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:21 AM
Points: 1,899, Visits: 18,918

What I need to accomplish. I am supposed to be basically recreating their reporting in SQL Server RS 2008 (will get installed in a couple weeks with SQL 2008 R2), but I am not that savvy in Access (used it a few times 6-7 years ago but not to this extent.). I cannot figure out how to find what is populating the Access tables from the SQL tables.


Access will either be looking at
"local" tables...these are tables that have been populated with data from SQL or
"linked tables"....the tables are linked thro an ODBC DSN connection.

where does the data in SQL come from?...is this a production (eg OLTP) SQL db ..or just a "reporting" db, in which case...how does the data get into SQL?


__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1251303
Posted Monday, February 13, 2012 9:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 5:29 PM
Points: 144, Visits: 522
I would expect they used the linked approach to the SQL Server tables using ODBC. If you look at the tables in the Navigation Pane, you should see a globe symbol for each SQL Server table. That assumes of course that the Access database(s) are in the .mdb or .accdb format. If they are in the .adp format then you have a direct connection to the SQL Server tables. Hope that helps get you stated. We do that sort of thing all the time.

Wendell
Colorful Colorado
You can't see the view if you don't climb the mountain!
Post #1251305
Posted Monday, February 13, 2012 9:44 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, April 28, 2014 10:45 AM
Points: 155, Visits: 251
The SQL DB is populated through the Main Application-front end in Access but connected to the SQL DB.

The Access Reporting/Applications use:
--SQL Tables
--Access tables that are from other Access DB's (used within other access reporting application)
--Local access tables initially populated from the SQL DB (this is where I am stuck and trying to figure out how these are populated.)

I need to find the connection mapping SQL table/column to Access table/column or find the Queries used to populate the data from SQL to Access.

------------------------------------------------------------------------------
I can see which tables are directly connect to the SQL DB but most of the "Reports" use the Access tables that I am not sure how are initially populated.
I can see which tables are from other Access DBs
I can see which are local Access tables


Respectfully,


K8
Software Developer/Data Analyst
Ozaukee, WI
Post #1251306
Posted Monday, February 13, 2012 10:30 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:21 AM
Points: 1,899, Visits: 18,918
kschwid (2/13/2012)

--Local access tables initially populated from the SQL DB (this is where I am stuck and trying to figure out how these are populated.)

I need to find the connection mapping SQL table/column to Access table/column or find the Queries used to populate the data from SQL to Access.

------------------------------------------------------------------------------
I can see which tables are directly connect to the SQL DB but most of the "Reports" use the Access tables that I am not sure how are initially populated.
I can see which tables are from other Access DBs
I can see which are local Access tables


somewhere, some code is being run to update your "local " Access tables.....we cant see what you can see...but are there any "update" buttons , modules, on start up procs that are being run?


__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1251340
Posted Monday, February 13, 2012 10:41 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, April 28, 2014 10:45 AM
Points: 155, Visits: 251
One of the Report Applications (in Access) that I am looking to recreate some of the reports from, does have a refresh button. I look at the buttons properties and on the event tab it says "on Click" - calls Refresh_Main I click the ... button so it takes me there and I get Figure 1 in the attachment.

I then go to look at that query and its in relation to the user/time, date and database logging. It doesn't call a query to populate tables.

---------------
I am unsure how to find out if it has a module or procedures at start-up.
That's almost what I have been trying to figure out how to see. Because that is my assumption as well is its something at start up.


Respectfully,


K8
Software Developer/Data Analyst
Ozaukee, WI
Post #1251352
Posted Monday, February 13, 2012 10:42 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:21 AM
Points: 1,899, Visits: 18,918
kschwid (2/13/2012)
One of the Report Applications (in Access) that I am looking to recreate some of the reports from, does have a refresh button. I look at the buttons properties and on the event tab it says "on Click" - calls Refresh_Main I click the ... button so it takes me there and I get Figure 1 in the attachment.


no attachment ??


__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1251354
Posted Monday, February 13, 2012 10:51 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, April 28, 2014 10:45 AM
Points: 155, Visits: 251
So sorry...



Respectfully,


K8
Software Developer/Data Analyst
Ozaukee, WI


  Post Attachments 
Figure 1.docx (37 views, 49.16 KB)
Post #1251357
Posted Monday, February 13, 2012 10:59 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 3:21 AM
Points: 1,899, Visits: 18,918
ok...what does query "z_log_refresh" do? the "open query" at the bottom of attachment.

am getting a bit OOMD on this...my Access "skills" were based on VBA not the wonderful world of embedded macros et al


__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1251360
Posted Monday, February 13, 2012 11:06 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, April 28, 2014 10:45 AM
Points: 155, Visits: 251
Here is the code in z_log_refresh query

INSERT INTO DATABASE_LOGIN_FILE ( [USER], [TIME], [DATE], [DATABASE], COMPUTER, NOTES )
SELECT Environ("USERNAME") AS [USER], Time() AS [TIME], Date() AS [DATE], "Refresh HD-Stat" AS [DATABASE], Environ("COMPUTERNAME") AS COMPUTER, "LOGIN" AS NOTES;



Respectfully,


K8
Software Developer/Data Analyst
Ozaukee, WI
Post #1251363
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse