The Higher The Database Size, The Slower The Query Process?

Jul 10, 2007

I am developing a database and testing it with dummy data. With 50,000 records, the query process using SQL command is just OK. But if I double the total records, the query process takes longer time. The query is to make recapitulation using SUM of SQL command based on certain criteria. Any idea to make the query faster?

Thanks.

View Replies


ADVERTISEMENT

Modules & VBA :: Copying Records From Linked Table / Each Record Slower And Slower

Jul 30, 2015

I have an access db with a linked table (to Sharepoint) which contains about 15000 records. I have to copy those records to the local access db. To do this I have a bit of VBAcode. It works, but for each next record that is copied it takes a bit longer. When starting the program the records are copied quite fast, but soon you see it slowing down until after a couple of thousand records it just goes too slow to be usefull, meaning it would take a lot of days to copy all records.

What I now do is let it copy 500 records and exit ms-access completely and then start it again and let it copy the next 500 records. This works but is tedious as I have to do it about 35 times. Why this gradual slowdown occurs?

The VBA code is pretty straightforward.(I use VBA because I do a bit of data wrangling while reading in the values of the records)

Code:

Dim importdb1 As DAO.Database
Dim rsimportdb1 As DAO.Recordset
Dim i As Double
Set importdb1 = CurrentDb
Set rsimportdb1 = importdb1.OpenRecordset("2015")
Set rsMain = CurrentDb.OpenRecordset("tbl_import")

[code]....

View 3 Replies View Related

Keep Access 2000 & Higher Out Of My 97 Database

Dec 6, 2006

My database is written in Access 97 (I know get out of the stone age) but we have a mix of office 97 and office 2003 users. Anyway I'm afraid that one of the few people that have access 2000 or higher will open my database and convert it. I found (through here) code to check the version but it is attached to a form opening which is way to late. Is there a way to have access check the version as soon as you click to open the database and if it isn't 97 close the database?

View 4 Replies View Related

Query Has Become Slower

Oct 4, 2005

I've got a database with 1.5 milion orders. In those orders there are also customer information. Now i want to filter the customer information. In a older backup from my database when i run the query i takes about 22sec. But my new database it takes 2 min. (Both have 1.5 milion orders).

I haven't got a clue why i've got this problem. I've put some indexes on the table (didnt work) so i deleted the indexes from the table. I also put some relations to the tables.

But the strangest thing is that the status/progres bar in the leftbottom screen go's immediately to the end of the bar, and there it stops for 2 min,
The old db does this in steps...

My operating system is winxp with sp2
And access xp

I also want to know if it is possible to get clusted indexes in access. Because i cant get the integrity in the relationship diagram. (the database isn't normalised this is because i didnt make the database)

I'm sorry for my crappy English.

View 1 Replies View Related

Database Size Limited To 2GB / Query Multiple Database Without Linking Tables?

Sep 7, 2011

I'm trying to set up a simple query that links four tables. However, the tables are extremely large, all in excess of 1.5GB each so I had to split the tables up into four separate DBs. I've tried the following with no success:

1) Link the 4 tables in the DB which contains my primary key. This quickly inflates increases the file size above 2GB and won't let me go any further.

2) Build a remote query to connect the four tables. This looked promising until I tried to run the query and it became evident that it only knows to point to the last database source that you specified.

I'm running everything locally on my C drive. The data source are simple text files (1.6 million rows) from the FDA website.

View 3 Replies View Related

Large Field Size = Larger Overall Database Size?

Aug 29, 2005

Will keeping your field size shorter result in a smaller MDB file?

Or does Access only use as much space as there is real data in its fields.

Way back in the dBASE III days, dBASE would pad all your "real" information with as many spaces as necessary to fill up your field. I suspect that the MDB structure is probably smarter than that.


Another question on the same topic - I believe there is a maximum number of characters in a record (4000?). Can your field sizes add up to more than 4000, as long as the actual data, all combined, never totals 4000...?
Thanks............
..dc

View 3 Replies View Related

MS Jet Database Engine Stopped Process ...

Aug 14, 2007

Dear All,
I prepared times ago a database that contains important data that will be frequently updated.
Since yesterday I cannot load the database anymore. I get a pop-up with following statement:
Quote
The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time
Unquote
If I click ok, the loading process will be aborted.
I'm the only user of this database, neither the database nor the directory containing the database is sharable. It is located on the harddisk of my computer which nobody from outside can access.
What can I do to recover the access to my database?

I use MS Office 2003 but tried to open the database also on MS Office 2000 with the same result.
The Help function of MS-Access does not really help.
Who knows how to solve the probleem????
With regards
Siegfried

View 2 Replies View Related

Query Based On The Higher MTD Sales

May 29, 2006

Hello,

I need to write a query based on the higher MTD sales in the series of each fabrics within series of Sales Group and Prod Group . All info is from one table

Order by: Sales Group (alphabetical ord) , Prod Group (alphabetical ord) , sort Fabric Group based on the TOP MTD sales

Sales Gr: Active
Prod gr: Adult, Girls, Plus, LG
Fabric Gr: a,b,c,d,e,f...
StyleNum: 1,2,3,4,5,6...(PK)

Sales Gr: Dance
Prod gr: Adult, Girls, Plus, LG
Fabric Gr: a,b,c,d,e,f...
StyleNum: 1,2,3,4,5,6......(PK)

Sales Gr: Yoga
Prod gr: Adult, Girls, Plus
Fabric Gr: a,b,c,d,e,f...
StyleNum: 1,2,3,4,5,6......(PK)

Thank you

View 1 Replies View Related

Database File Size Getting Larger From Search Query

Apr 4, 2008

I'm having a problem with my database filesize getting larger with the more searches i do. At first i couldn't figure out how it was getting so big, but then i tried a few things and came to the conclusion that every time i do a search it increases its filezile.what made me notice this at first is that the file size of the original copy of my db is 13MB, but if i Save As a different name, like Assets_Backup, then the size of the new file is only 2MB, and after i do some searches it increases again.here is a file with just my search form and search query so you can see the code for them. i removed everything else to shrink the file down, which also made the search form not function properly, but i thought the design and code might be enough.is there something that i can change to keep it from remembering every search?thanks for any help.--------------------after searching the topic a bit more i've found that compacting the database will shrink it down to 2MB, but is this something that will have to be done on a regular basis, or is there a way for it to do it on its own?

View 5 Replies View Related

Microsoft Jet Database Engine Stopped The Process Error

May 21, 2007

Hi All

My department has customer database using microsoft access with the main table being a linked table to SQL-Server database down in IT department.

I've only been recently made aware that the staffs have been having problem when trying to change or delete old data. It keeps on bringing up the error message

The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time.
which is hardly the case since each staff are assigned only one customer to work on.

While it is technically possible to have many people working on the same data, business wise, it is impossible to do that.

I still come up with the same error even when the IT department confirms that no one accessing the SQL-Server table and I was the only one logged in.

This leads me to believe that there is something in the code that somehow preventing the table being edited or deleted. The problem is the database is so huge and was designed by my predecessor so I do not have any knowledge of the complete working of the codes behind it.

If it's the problem with the code, can anyone tell me what sort of codes caused this? If not, can anyone tell me what happened?

Any help would be most appreciated.


Thank you

View 4 Replies View Related

The Microsoft Jet Database Engine Stopped The Process Because You And Another User Ar

Mar 18, 2008

Hello!

I am working on a database that uses a table from another access database. I am not sure but I think the problem started after this line was added to the code:

Set dbk = OpenDatabase("D:My documentsJapiOritaColorBazeKnjigovodstvo1.1.md b")

The database still works fine on one machine. When I copy it to another machine, that is when I receive 3197 error.

When I copy database to another machine without the code that contains the line from above, and copy the same code in the same form after opening copied databse, the problem is solved.

Does anybody know why is this happening? How can I fix this?

Thank!

View 3 Replies View Related

The Microsoft Jet Database Engine Stopped The Process Because You And Another User Ar

Dec 4, 2006

I have created a db that is used strictly for data entry. I have one main form with about 6 embedded subforms and the db is broken down into a FE/BE. I currently only have one user in the database and sometimes when the user tabs into one of the subforms the will receive error 3197. I have searched the forum and have read that this error may be caused by a OLE or memo field but I have neither. There is no pattern to the error it seems to happen sporadically. Any ideas?

Thanks in advance

View 8 Replies View Related

The Microsoft Jet Database Engine Stopped The Process… Error Message

Nov 17, 2006

I attempted to add new queries, reports, and a form to a shared database. It bombed out and I found that a user was changing data in the tables at the same time.

Now I cannot access the database at all (front or backend) and receive the error message: “The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time”. (I have verified that no users are currently logged in.)

Access to the data is critical to my department and I’m scrambling to fix this. Can anyone assist me?
Thanks!

View 6 Replies View Related

Forms :: Retrieve Info From Another Query - Higher Column Numbers?

Aug 22, 2014

When I attempt to use the me.field = me.combobox.column() method to retrieve info from another query,it only works if I use column 0 or 1... it doesn't work with higher columns number.

- field name: cbofi
- row source: listado-unico-fi <-- it is a query with unique values and 7 fields in total
- event procedure, change:

Private Sub cbofi_Change()
Me.txtDOCTPT = Me.cboFI.Column(1)
Me.campovia = Me.cboFI.Column(5)
End Sub

- txtDOCTPT is the field that indeed works
- campovia is the one that does not work

I tried using column(0) and column(1) and it worked fine... but higher column numbers do not work. Just mentioning because the field names are all right.

View 3 Replies View Related

Modules & VBA :: Process Records Without Dates First And Then Run Another Process To Split Those With Dates?

Aug 18, 2014

I'm not sure if I am biting off more than I can chew. I have a text field in each record in my database (Inherited) The db has nearly 5,000 records. I would like to split the field into records in a seperate table. An Example of the table as is now;

Code:
MemberIDBoats
5882Opossum(78-80) (87-89) Otter(80-84) Opportune(91-93) Turbulent(97-00).
5883Astute Auriga Aeneas Affray Amphion
2407H34 O10 Porpoise Trenchant Tapir.

I want to create a table as follows;

Code:
MemberIDBoatFromTo
5882Oppossum19781980
5882Oppossum19871989
5882Otter 19801984
5882Opportune19911993
5882Turbulent19972000
5883Astute
5883Auriga
5883Aeneas
5883Affray
5883Amphion
Etc.

Is this possible in one hit or do I need to process the records without dates first and then run another process to split those with Dates? I say dates but the field is a text field. About 15-20% of the records contain dates which are always enclosed in parenthesis.

View 14 Replies View Related

Process Each Line Of Update Query

Sep 8, 2006

I have this update query that does not quite work. I have attached a picture of the design view. What I need to do is process each line and update the processed field (yes no) to minus one to then exclude that record. Unfortunately when this query runs, it sets the processed field after matching all records.

So how do I process line by line

View 1 Replies View Related

Modules & VBA :: How To Process A Select Query Using Listbox Value As Where Variable

May 6, 2015

I am using Access 2013. I have the ability to pull a selection from a listbox. I can create a Select Sql string using that variable

sql As String, strCompany As String, strWhere As String
strCompany = strCompany & Me.lstResource.Column(0, varItem)
strWhere = "[Company name]=" & "'" & strCompany & "'"
sql = "select * FROM tblResources WHERE " & strWhere

From here I have trouble. I see lots of examples to run an active query but not much on a select query. I have tried a number of things with no success. How to use this select statement to actually run against an existing access table? I am not putting it into a form or report at this time, just running the query to check results.

View 1 Replies View Related

Mapped Drive Converted To UNC Is Slower

Nov 23, 2005

I have my database connected to a network of ten computers. I recently switched my linked tables from a Mapped Network Drive to using the actual UNC path \computerfolderdatabase.mdb

My users have started to notice it takes longer for the database to connect in order to log in. Once they have established the connection, the data transfer speed seems to be normal.

Is this to be expected? Any suggestions to speed things up for login? Or is this the downside to using UNC?

~Scott

View 2 Replies View Related

Database Size Got Too Big

Jun 15, 2005

Hello friends,
I had converted a Access 97 database to Access XP. The original size of database was about 38 MB.Last week I worked with some queries of different types.Now the size is about 135 MB.How should I reduce the size of database again.I really also dont know whether it happened because of queries... :(

View 5 Replies View Related

Problem With Database Size

Oct 17, 2005

Hey all,

I am not very gud in access, so I need your help. I am facing a strange problem..... I have created a database which consists of four tables....out of which two tables have relationships. When I make my database and create all the tables as described...its initial size is 320 KB around. When I put data in it, its size increases accordingly....I noticed a strange thing that when I entered some data in my Database it reached around 5MB, but when I deleted all the records from all the tables, the database size didn't decrease. It actually remained of the same size 5MB.......

Why so??? Don't you think that the database size should be decreased when I delete my records from all the tables. Is there any option which I need to select to decrease the database directly??? Well just FYI, I am using JAVA as front end .......

Regards,
Vikas Bhandari

View 2 Replies View Related

Database Doubles In Size! Help!!

May 1, 2006

I am a novice to db design but I started my db quite a while ago but have only just noticed it keeps doubling in size periodically, even though I have not added many records or changed much. The first time I noticed this phenomena it was at 65Mb (already too big?), it then periodically (and randomly) doubled in size until it was about 480Mb!! I have been told that when db objects are deleted they are not actually deleted and this would explain the size explosions I saw. I have compacted and repaired the db and it now stands at a much more likely 11Mb. However, I really wanted to understand why this occurs so that i could prevent it from reoccuring (I have set my db to compact on close now - which seems to keep it small in size).

I have a whole load more questions aswell but you will see those in the near future!!

thanks in advance.

View 5 Replies View Related

Database Size Increasing Too Much

Aug 22, 2006

Hi,

I have created two databases to try and speed up some data manipulation. One database is acting a a 'sniffer' and runs make table, delete, append and normal view queries. the append and make table queries will either write to the other database (the receiving database) or to itself. I have therefore managed to reduce a run time for these queries from 10 minutes for all queries, to less than 1 minute (as previously all in one database using forms).

The problem is these databses contain only about 10 tables to which I am adding data (non of them contain more than 5000 records at the moment) and I also have approx 50 ODBC linked tables (about 30 MB worth so I can retrieve data i want to write to the tables).

The databse has run through my 10 queries about 50 times (each time pasting new info to my receiving tables - still no more than 5000 records) however both database have increaed from a few MB to over 900MB - Is there any way I can stop this from happening as this seems to be a rediculous increase in size - i am also having huge problems compacting the databases.


thanks

View 1 Replies View Related

Database Size Even After Compression

Aug 6, 2007

I know this topic has been floated around a bit, but I don't see any easy solution.

When developing a new projrct or editing an old one, the Front End size grow and can be compressed.

I was keeping an eye on it with this last new project. My front end code base got to about 12 megs compressed. I thought that wasn't too bad, until...

For shxts and grins, I created a brand new database and imported everything from the 12 meg one. This is a pain to get all the code references reset in the correct order. The resulting file size? About 5-6 megs.

Now why couldn't the repair and compression tool do that?

There is NO data stored. This is a code base front end only. I had the options set to compress on exit.

Does anyone else have this issue with ACCESS 2000 and XP? :confused:

Thanks

Dave

View 1 Replies View Related

Condensing Size Of Database

Feb 26, 2013

I recently deleted about 2/3 of the records in my database and notice that my file size did not change. Do I have to run a special procedure to condensed my database?

View 3 Replies View Related

Choose Higher Value

Aug 8, 2005

Hi,

Is there a way to automatically choose a value such as 0 if the expression goes to a negative number?

E.g. I have a query that will subtract a numeric field from 10. If 10 - [numericfield] is less than 0, then I only want it to display 0. Otherwise, it can display the value if it is positive.

Any help would be much appreciated.

View 3 Replies View Related

Access Database Size Limits?

Sep 30, 2005

Hey guys,
Was wondering, what is the recommended maximum size for Access databases? I've heard that for very large databases that oracle is preferred. Would Access be appropriate for something on the scope of 5000 records of roughly 6 text and 2 number fields? Do people ever notice performance effects on databases of that size?

Also are there any ways to help reduce the size of the database? Do you recommend change the default field sizes where appropriate and would this have a noticeable effect on a database of this size? Any other suggestions to help keep the database manageable, and functioning?

I'm basically trying to figure out if there's much to worry about here, before I start importing my data. Thanks.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved