Click here to Skip to main content
15,900,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need split my Access db(size is near 2Gb),
is this possible with c#?
if it is true,How?
Posted

If after you compact the database and it's still too big...

If you're expecting an Access database to work as a set of multiple files, it won't. You cannot have a database span multiple files. You have simply outgrown the capacity of Access and need to upsize to some edition of SQL Server.
 
Share this answer
 
Comments
William Winner 28-Jan-11 18:19pm    
Well, wouldn't that depend on the structure of the database? Realistically, since a database can have multiple tables, as long as the tables are stand-alone and don't have any joins, they could be in any number of files that you wanted them to be in.

But, yeah, he's outgrown Access if he's over 2 gigs.
Dave Kreskowiak 28-Jan-11 20:11pm    
Do you really want to explain to him how to manage that nightmare? I sure don't.

It's a lot easier to migrate to a database engine that can handle his data requirements with a minimum of fuss.
William Winner 29-Jan-11 6:34am    
I completely agree with you...which is why I didn't try to explain to him how to do it. But you made a blanket statement that said it couldn't be done, when in actuality, it can be. That was all I was saying.
Dave Kreskowiak 29-Jan-11 9:30am    
I guess I meant something more like it should never BE done. I know you can link tables to tables in other files. It's just, UGH, too mind numbing to consider and mantain.
Here is a nice solution: Move the data to SQL Server Express[^] - Handles up to 10 GB, and when that becomes a problem you can upgrade the server.

Here is some more information:
Migrating to SQL Server 2008[^]

Regards
Espen Harlinn
 
Share this answer
 
Are you sure you need to split it? Have you tried compacting it first?

But, yes, it's possible...but a complete change in structure like that changes everything and takes a lot of thinking through the implications and the new structure.
 
Share this answer
 
Comments
fjdiewornncalwe 28-Jan-11 16:21pm    
Comment from OP moved from answer:
ok,I will compact it but the db will be full finally.
Is any simple way to split or auto split a Access db ?
I never use ms access Mad !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900