Questions tagged [compact-database]

The tag has no usage guidance.

compact-database
Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

How to compact database using vb.net application programatically, I tried JRO engine but it's not working

I created an application to store document files in a MS Access database .accdb file using OLE object type, but every time when I save data and delete it, the size of the database is increased, but ...
Sujeet Kumar's user avatar
0 votes
0 answers
52 views

How to handle CouchDB deleted documents with replications

Using v.3.1.1 CouchDB. We are replicating a database to many clients. We are deleting many documents on the server. Is it suggested following be run on some kind of schedule (daily maybe): https://...
obautista's user avatar
  • 3,665
0 votes
1 answer
111 views

I get the error: file or assembly system system.data.sqlserverce not found

Picture error from my device On emulator it work but on my device it dosen't work. I copy build file to my device and run. It right? file copy My device Infomation CE OS 5.2.29370 .NET CF version 3.5....
Taq Atom's user avatar
0 votes
1 answer
1k views

Compacting Microsoft Access Database without using DAO

I use the CDatabase class to open a ACCDB Access database. The driver is: _T("Microsoft Access Driver (*.mdb, *.accdb)"). I can open and use the database OK (have done so for many years): if ...
Andrew Truckle's user avatar
0 votes
1 answer
2k views

MS Access 365 error - compact and repair error

I am suddenly receiving the below error message when attempting to compact and repair my access databases. Clicking ok on the error message results in original .accdb file being deleted and an .mdb ...
MGilbert's user avatar
1 vote
1 answer
163 views

Can you compact one Access database using a query in another database

I would like to compact DATABASE2 from a query within DATABASE1. Situation: I have 2 Access databases, one with all the queries/logic, one with tables created from the first. Before I write from ...
Herb A's user avatar
  • 11
0 votes
0 answers
433 views

compact mongodb collection in background

I always run the compact command on mongodb and it disturb the performance of the DB , do you know if adding Background : true will work ? I'm asking before testing it . db.runCommand({compact:'...
AbdelAziz ESSAADI's user avatar
0 votes
1 answer
169 views

compact list object in a tidy dataframe R

I have a list object (results) and am trying to compact it in a tidy data frame. But I am not sure how to achieve that. [[varying from 1to 3nsim][[varying from 1 to 9]][[varying from 1to 3]][[varying ...
Ibrahima's user avatar
0 votes
2 answers
3k views

Compact and repair Access DataBase in run time using C# without Access installed

I write a program that should run on a lot of machines I did not installed Access in the machines But I have an access database using on them When I write and delete data from this Access databases ...
hedbisker's user avatar
  • 197
-1 votes
2 answers
838 views

How to read data faster in Entity Framework from SQL Server Compact C#

I used SQL Server Compact edition v4. When I get new from entities, it takes 1 second, but when I count from a table with only one record, it takes 4 seconds. I used Entity Framework and SQL Server ...
user avatar
1 vote
2 answers
501 views

Is it possible to compact an embedded HSQL DB from a Spring Boot application?

I've created a Spring Boot application with an embedded, file-based HSQL database. The data file being created is getting fairly large, especially given the usage model, so I'm wondering if there is a ...
Thinking Inside Your Box's user avatar
2 votes
1 answer
1k views

Mongo DB Collection Compact

I have been looking at a way to reduce the size of a set of mongo databases that keep on growing in size. I am new to mongodb. I have looked at various methods for doing this and thought the ...
karen's user avatar
  • 923
1 vote
2 answers
2k views

Why do MS Access front-ends increase in size over time?

I have an MS Access front-end (Oracle back-end) that has 2 linked tables, 2 MS Access queries, and 4 reports. I've noticed that the .accdb files (stored on users' desktops) get bigger over time. They ...
User1974's user avatar
  • 368
0 votes
2 answers
1k views

Store in a variable the number of rows from a table where a column has a certain value in SQL Server Compact

I have a Windows Forms application and a SQL Server Compact 3.5 database. I want to store in a variable the number of rows from a table where a column has a certain value. I have something like this ...
user3751422's user avatar
0 votes
0 answers
352 views

Compact MSAccess Database (.accdb) without having MSAccess installed preferably with Java

I am developing a management system that uses an Access Database to store data. The database is updated frequently and due to this it tends to bloat. The user doesn't have Microsoft Access, but has ...
Cpt_Pi's user avatar
  • 1
-4 votes
1 answer
643 views

MS Access Jet Database programatically compact

Ref: Access "Compact and Repair" programatically HI Guys, I'm looking for a way to run a batch script via scheduled task to compact and or repair a "Jet" .mdb file / database. Environment ...
Vincent Mills's user avatar
0 votes
1 answer
69 views

C# DbDataReader populating List result in OutOfMemoryException

I am currently trying to read a large table from an compact ce database containing aprox 3-4 million rows. The database size i currently 832MB. Populating a list with the records is throwing ...
jsandv's user avatar
  • 296
0 votes
0 answers
63 views

Call an auto compact after event

I have some code, which works perfectly fine, that compacts an Access database when the database is opened. However, I'm a little stuck as to how to do the next bit. What I want to happen is that ...
james ellis's user avatar
0 votes
1 answer
235 views

Couchdb compaction and deleted documents

When I delete document its revision is increased, then PUT the same document, its revision is increased. After compaction, PUT the same document, its revision is started from 1. And now, when I got ...
InnerWorld's user avatar
1 vote
2 answers
796 views

PouchDB compaction has no affect on db size on disk

I make use of couchdb/pouchdb to replicate data from a server down to a mobile device (data is only replicated downstream to the mobile device). As my dataset is large (approx 100,000 documents) i'm ...
Andrew Thomson's user avatar
1 vote
2 answers
641 views

Use sdf database(SQL Server Compact 3.5 database file) without installing Microsoft sql server C#

I want to use a database in my C# program but I don't want other users who want to use my program to have to install a big volume software like Microsoft SQL Server that is more than 2 GB. So, can I ...
SoheilYou's user avatar
  • 949
0 votes
1 answer
597 views

How to Create MySQL Compact Database?

I want to use MySQL like SQL Compact Edition! In other words, I want to create a local database (compact database file) by MySQL csharp drivers in from Connector/Net . In my project we need first to ...
Behzad's user avatar
  • 3,572
0 votes
1 answer
54 views

Connection to Database Closed before data input

I am using Visual Studio 2008, with Microsoft Server Compact 3.5 and the script is written for Windows Mobile 6.5.3 Professional. I have a small form script that connects to a database file, after ...
JJ Morgan's user avatar
  • 117
0 votes
1 answer
652 views

Solution for merging data from multiple sql compact databases to a central sql server database using sync framework

I am currently working on an application for tablets that uses a SQL Server Compact 3.5 database. The need has risen to sync data among tablets. After some research (namely this and this), my team and ...
user avatar
0 votes
0 answers
119 views

Generate SQL Server Compact 3.5 to SQL script?

I need to convert a SQL Server Compact database file to SQL Server, so I think generate script is the best way, but I can't find anything in SQL Server CE Toolbox 3.5 Is there a workaround?
Andiana's user avatar
  • 1,922
0 votes
1 answer
858 views

The specified locale is not supported on this operating system. [ LCID = -1 ]

It's my first post here, so sorry for any mistakes I make. I get this error when I try to open a compact database with a program called Edusal, I tried also to open it with SDF viewers but they give ...
Megabitus's user avatar
1 vote
1 answer
2k views

What does Mongodb's compact actually do?

Well, probably this should be clear from the documentation, sadly, this is not the case. My guess was, that compact make some kind of defragmentation of the colection - such that collection's ...
Tomas Kulich's user avatar
  • 15.1k
0 votes
2 answers
1k views

Why doesn't AbortTransaction work?

I am using npoco, trying to work with transactions, I can´t get the AbortTransaction method to rollback anything in my db. public class ItemRepository { private Func<Database> _db; public ...
daniel_aren's user avatar
  • 1,824
2 votes
1 answer
398 views

compact ms access database in vb.net without copy of the database

I have searched the net on this topic and found, that if an ms access database should be compacted, then I should give the database itself and a new path. Why is this necessary? If I check in ms ...
derstauner's user avatar
  • 1,622
2 votes
0 answers
707 views

What is a safe way to compact/optimize a MongoDB collection?

I wanted to compact some collections, and to my surprise this is not as straightforward as I thought. It failed after a couple of seconds and now I cannot connect to the database anymore: Collection: ...
Redsandro's user avatar
  • 11.3k
0 votes
1 answer
3k views

How to compact database access file in vb

Now i have database already in my folder but size of file is biggest.Then i want to compact this file but i get some error about "Invalid argument.", How can i do in this case. thank u this my code ...
user3001046's user avatar
1 vote
1 answer
408 views

Best Option for embedded databases using .Net 4.0/4.5 [closed]

Does anyone know the best option for embedded databases using .Net 4.0/4.5 The application is targeting Windows. I have been using SQLite for my project for years. However, technology has changed ...
Michael Hartmann's user avatar
0 votes
0 answers
890 views

Is it possible to run SQL Server Compact Edition totally in memory?

I have a need to run a small database in memory (no disk). It's important that the data only be loaded in memory and not persisted on disk. I will load the database up when the application starts. The ...
Paul Fryer's user avatar
  • 9,348
1 vote
1 answer
605 views

Compacting an Access 2003 database in VB.NET via DAO

Actually I am using the next code to compact Access 2003 databases (mdb files). in the past, I've used JRO.JetEngine (but is obsolete). code: Add Reference: Microsoft Office 12.0 Access Database ...
kontable's user avatar
0 votes
2 answers
92 views

EF 6.0 Code first Compact Edition: incorrect connection string or app.config problems?

ask your advices about this: I am trying to create db compact edition, first time it was successfully with default dbName (ProjectName.dbContextName). But i decided to define my own name, and ...
Ryan's user avatar
  • 672
0 votes
0 answers
100 views

SqlServer Compact into RAM?

I'm developping a C# project with SqlServerCompact. I have to open a connection with the database for each request and create a reader/executenonquery. But is it possible to load all the database in ...
user2088807's user avatar
  • 1,388
0 votes
2 answers
2k views

Can I access an encrypted SQL Server Compact database in Excel VBA?

I want to access an encrypted SQL Server Compact Edition database via VBA. I can access the database fine when it is not encrypted, but the code breaks when I try to use a password: pConn....
Peter Rankin's user avatar
1 vote
3 answers
4k views

You are trying to access an older version of a SQL Server Compact Edition database

I am getting error when I am trying to open connection. My DB.sdf file is in my application folder here i stored db.sdf { string ConnectionString= new System.IO.FileInfo(System.Reflection.Assembly....
Raam's user avatar
  • 11
1 vote
0 answers
85 views

Problems creating a compact database based on database first model / Nullable<sbyte> cousing errors

I am using ef database first to create my entity classes. Now I would like to create a compact database from these entity classes but everytime I try to query the compact database (what should create ...
Shatterator's user avatar
1 vote
1 answer
1k views

C# Windows Form App (Private deployment of SQL Server Compact 3.5 SP2) Error - Stopped working

This is my 1st time deploying a C# project. dev machine x64 targeted machine x86 Setup Project Launch Condition .NET Framework 4 According to http://erikej.blogspot.com/2012/05/private-...
user2994921's user avatar
0 votes
1 answer
891 views

Should I compact a MongoDB database before mongodump/mongorestore?

I have a database that hasn't been compacted in a while so its disk size is much larger than actual data and index sizes. I'll be moving it to another database and would like to know: would ...
Aaron Silverman's user avatar
3 votes
2 answers
1k views

preventing Autoexec macro from running after Compact & Repair

Seems such a simple thing, but I can't find the answer anywhere. Every time I Compact & Repair, my Autoexec macro runs again. Is there a way to prevent it from running here, as part of the reason ...
Wilskt's user avatar
  • 337
1 vote
1 answer
155 views

Re Share File on Network

I currently use the VB6 CompactDatabase method to compact a .mdb (Access DB) file and have searched high and low for a way to reapply the Share Permissions on Original DB using VB6. The ...
FLOG51's user avatar
  • 43
0 votes
2 answers
1k views

CompactDatabase with dbEncrypt returns "3001: Invalid argument" error

I am getting a 3001: Invalid argument error when trying: DbEngine.CompactDatabase "db1.accdb", "db2.accdb", , dbEncrypt I believe the function is using ACEDAO.DLL version 14.0.6016.1000 What could ...
CJ7's user avatar
  • 23k
0 votes
1 answer
357 views

IDatabaseCompact.Compact() on an used IWorkspace

I am writting an ArcMap-AddIn with vb.net. I got an error when trying to compact my IWorkspace(mdb), the error is: COMException You tried to open a database, which was already opened by the ...
Munchies's user avatar
  • 444
23 votes
3 answers
142k views

How to change column width in DataGridView?

I have created a database and table using Visual Studio's SQL Server Compact 3.5 with a dataset as my datasource. On my WinForm I have a DataGridView with 3 columns. However, I have been unable to ...
Pallas's user avatar
  • 1,559
0 votes
2 answers
473 views

What causes "Could not load database compaction library" and how can I fix it?

In a compact framework .NET 3.5 application running on Windows Mobile 5 we are seeing the following error message being logged: Could not load database compaction library. Operation has been aborted. ...
Richard Lucas's user avatar
14 votes
5 answers
7k views

Compact or renumber IDs for all tables, and reset sequences to max(id)?

After running for a long time, I get more and more holes in the id field. Some tables' id are int32, and the id sequence is reaching its maximum value. Some of the Java sources are read-only, so I ...
Lenik's user avatar
  • 14.2k
1 vote
1 answer
1k views

Synchronization two SQL Server databases without link beetween

I have central SQL Server 2008 Enterprise database and many clients with SQL Server 2008 Express databases. And I have a task for synchronization between central database and client's databases: ...
viko's user avatar
  • 61
0 votes
2 answers
1k views

Connect to SQL Compact 4.0 with ADO connection

Using the SQL Compact version 4.0 from Microsoft SQL Server Compact 4.0, I've created a new compact database on E:\tmp\EmbSQL.sdf with SQL Studio. Trying to connect from Excel Macro: Set conn = ...
Ronald's user avatar
  • 1