Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 25th, 2006, 11:37 AM
Registered User
 
Join Date: Oct 2006
Location: Des Moines, IA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Large Access Database Help

I was given the "privilege" of taking over this huge database. It has queries into other queries into 5 more queries into an append query. When running these queries it locks up quite often. Upon testing more I found that it will lock up 90% of the time if the query is ran twice without closing and 100% of the time if there are more than 2 users in the database. Has anyone come across this before? I have asked our IT people and they don't offer any help. I did find a Microsoft report talking about something like this being a flaw in SP1. So I had IT upgrade 10 PCs to SP2 but still no luck. Please help!?!?!?!

Reply With Quote
  #2 (permalink)  
Old October 25th, 2006, 01:53 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Need more info.

The front end is Access, of course. Where is the back end? Access or SQL?

Is the database split? Or (horrors) is everyone opening the same copy of an unsplit database off of a server?

What is the file size of the file with the tables in it?

Next you will have to post the numberof tables involved, and the SQL syntax for the series of queries in the order they are run in (starting with the first append query) (this would be cause for failure since it is probably appending new data to a table [perhaps deleting some data first] and then running a query off of it. When the second user goes to do the append, the first user has the table locked because they have an active query on it.)

HTH


mmcdonal
Reply With Quote
  #3 (permalink)  
Old October 25th, 2006, 02:28 PM
Registered User
 
Join Date: Oct 2006
Location: Des Moines, IA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your response!!!

The back end is Access.

The database is not split... There is only 2 data entry employess entering data in then managers and directors that will open the database just to run reports.

There are just 2 tables that is involved. Upon further review, I think I nailed it down to 1 particular query. Its just combining the 2 tables and I think maybe with the size of the tables and the amount of columns, is what the problem is...(i inserted the breaks to make it a little more readable)

INSERT INTO
[PCIO Master Data Table] ( [Review Identifier], [Coverage ID], [Company Code], [Review Id], [Prefix A], [Prefix B], RO, [Dec], [Account Number], [Contract Number], Term, Coverage, State, EmpID, Complexity, Premium, [Service Center], [Work Type], [Effective Date], [Work Received], [Review Status], Reviewer, [Question Id], [Response Id], Comments, [Date Recorded] )
SELECT
([Data - Master Review]![Master Review Id] & [Data - Master Review]![Question Id]) AS [Review Master ID],
[Data - Master Account - Coverage].[Coverage ID],
[Data - Master Account - Coverage].[Company Code],
[Data - Master Account - Coverage].[Review Id],
[Data - Master Account - Coverage].[Prefix A],
[Data - Master Account - Coverage].[Prefix B],
[Data - Master Account - Coverage].RO,
[Data - Master Account - Coverage].Dec,
[Data - Master Account - Coverage].[Account Number],
[Data - Master Account - Coverage].[Contract Number],
[Data - Master Account - Coverage].Term,
[Data - Master Account - Coverage].Coverage,
[Data - Master Account - Coverage].State,
[Data - Master Account - Coverage].EmpID,
[Data - Master Account - Coverage].Complexity,
[Data - Master Account - Coverage].Premium,
[Data - Master Account - Coverage].[Service Center],
[Data - Master Account - Coverage].[Work Type],
[Data - Master Account - Coverage].[Effective Date],
[Data - Master Account - Coverage].[Work Received],
[Data - Master Account - Coverage].[Review Status],
[Data - Master Account - Coverage].Reviewer,
[Data - Master Review].[Question Id],
[Data - Master Review].[Response Id],
[Data - Master Review].Comments AS [Auditor Comments],
[Data - Master Review].[Date Recorded] AS [Date Auditor Entered]

FROM [Data - Master Account - Coverage] LEFT JOIN [Data - Master Review] ON [Data - Master Account - Coverage].[Coverage ID] = [Data - Master Review].[Coverage Data Id]
WHERE ((([Data - Master Account - Coverage].[Review Status])>1));

Maybe I just answered my own problem, but thanks for trying to help if i did.

And it has to be one of the deals where the boss doesn't want to start over so I gotta make since of this thing... (sigh)

Reply With Quote
  #4 (permalink)  
Old October 25th, 2006, 02:32 PM
Registered User
 
Join Date: Oct 2006
Location: Des Moines, IA, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's also an issue where everything takes 30 seconds or more to load... forms, queries, you name it... but i think maybe the overall size of the database is the problem with that (15.4 MB). It's even 3 times as slow for one of data entry employess that access it from another location but i beleive its a bandwith problem there.

Reply With Quote
  #5 (permalink)  
Old October 31st, 2006, 03:12 PM
Friend of Wrox
 
Join Date: Dec 2005
Location: , , .
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From the look of it, you're duplicating data from the two tables Master Review & Master Account - Coverage by creating this Master Data Table. If you want my advice, get rid of that table entirely, recreate it as a query that is identical to everything from SELECT above on down, and update whatever functionality it is that looks at that Master Data Table to look at your new query instead.

Oh, and split the database, if you do it right the end-user won't even notice.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Database and Large Excel Table xpromac MySQL 1 October 24th, 2006 05:38 PM
Quick Webpage access with large data in database madhusrp ASP.NET 1.0 and 1.1 Professional 2 March 14th, 2006 03:11 AM
Query database with large number of records andyj00 ASP.NET 1.0 and 1.1 Professional 6 June 27th, 2005 08:47 PM
My size of database is too large minhpx SQL Server 2000 3 October 19th, 2004 04:39 AM
Compacting a large database takabyte Classic ASP Databases 1 February 5th, 2004 11:58 AM



All times are GMT -4. The time now is 11:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.