NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 1103 1104 1105 1106 1107 … 1231 Next »
Shrinking Access database size

 
  • 0 Vote(s) - 0 Average
Shrinking Access database size
jasjol
Offline

Senior Member

Posts: 270
Threads: 78
Joined: Dec 2004
#1
2005-02-11, 07:08 PM
My Access database GBPVR.MDP is 224MB - and I guess I should be able to shrink it.

Does anyone know of a tool to do this?

(I do not have MSaccess)
Using DELL P4 1.5GB RAM 250 GB HD + DLINK DNS313 netdisk 1,5TB, 2 pieces of Hauppauge PVR150 w/45-button remote, 1 Popcorn Hour 110. Win XP SP3. GB-PVR v1.4.7 Plugins: Xrecord
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,753
Threads: 769
Joined: Nov 2003
#2
2005-02-11, 07:16 PM
Yes, it will shrink significantly. I'm not aware of a tool that does it other than MSAccess.
Ericwiz
Offline

Member

Posts: 68
Threads: 12
Joined: Jan 2005
#3
2005-02-11, 07:29 PM
Microsoft has a tool for this.
Check this out
Jet Database Compact Utility

Hope that helps you out!
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#4
2005-02-11, 07:33 PM
This thread should give you the answer:
Could put this in PostUpdateEPG.bat and have it run after the episode guide is done updating:

http://www.experts-exchange.com/Database...81859.html
smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#5
2005-02-12, 12:43 AM
OK, to save us all registering with experts exchange, what's the line in postupdateepg.bat?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,586
Threads: 384
Joined: Dec 2004
#6
2005-02-12, 04:16 AM
[b Wrote:Quote[/b] (smeghead @ Feb. 11 2005,19:43)]OK, to save us all registering with experts exchange, what's the line in postupdateepg.bat?
<path>\msaccess.exe <mymdbname> /compact

You don't have to subscribe to EE to find this - try http://support.microsoft.com and search on the following...

msaccess command-line

Just went to EE, couldn't remember my password - they e-maled me a new one. Seems I've been subscribed since Nov. 1998 but the statistics show I've never answered any questions. Some expert that makes me!  [Image: biggrin.gif]

Cheers,
Brian
bluesxman
Offline

Senior Member

Posts: 311
Threads: 7
Joined: Jul 2004
#7
2005-02-12, 12:32 PM
[b Wrote:Quote[/b] (smeghead @ Feb. 12 2005,00:43)]OK, to save us all registering with experts exchange, what's the line in postupdateepg.bat?
No need to register, you just needed to scroll down a little bit! [Image: wink.gif]
Ericwiz
Offline

Member

Posts: 68
Threads: 12
Joined: Jan 2005
#8
2005-02-12, 03:11 PM
KingArgyle's answer is good if you have msaccess. If not look at the MS tool I mentioned above.

Or....

Go into your admin tools from control panel and select ODBC sources. Click the add button and select msaccess. One the next screen you can select the gbpvr.mdb and compact it right from there.

Using either method will cause you to have to stop the recording service and any MVP server or gbpvr client you have running.

Eric...



Ericwiz
Offline

Member

Posts: 68
Threads: 12
Joined: Jan 2005
#9
2005-02-12, 03:35 PM
Hey Sub,

I came across code to shrink an mdb from a .net project (see tek-tips.com). Because gbpvr has exclusive access I dont know if a plugin could be used but the code is easy. Is this something you might consider adding to the core?

Info follows:

Step 1:
Need to have MDAC2.6 installed on the computer (VS.NET insta­lls MDAC2.7) -> That works [Image: smile.gif]


Step 2:
write-click References in your VB.NET or C#.NET project, sel­ect Add
Reference. Click Com Tab and double click on "Microsoft Jet­ and
Replication Objects 2.6 Library" then click "OK" button twic­e. This will
add ADODB and JRO references to the project.


Step 3:
Use the following code (VB.NET):


Dim jro As JRO.JetEngine
jro = New JRO.JetEngine()
jro.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.­0;Data
Source=C:\...\nwind.mdb", _
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\...\newnwind.mdb;Jet OLEDB:Engine Type=5&quotWink


Engine Type = 5 for Jet 4.0 database (Access 2000 format).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,753
Threads: 769
Joined: Nov 2003
#10
2005-02-12, 04:57 PM
Yes, I'm aware of the code to shrink the database. The first public release of v0.23(.7?) included this shrink function, using pretty much the code listed above, but trying to distribute the JET/JRO runtime files with GB-PVR caused all sorts of problems. In the end I decided it was more trouble than it was worth, so I took the functionality out again.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge database (+27GB) - is it a problem? pme 7 3,043 2011-01-24, 12:37 AM
Last Post: gEd
  "database disk image is malformed" during attemped EPG update! (GBPVR v.1.4.7) DaveA 4 3,396 2011-01-23, 06:35 PM
Last Post: DaveA
  Zero-size recording files rawlings471 1 1,652 2010-12-05, 04:12 PM
Last Post: sub
  GBPVR Database question - Recording Schedule David B 1 1,633 2010-11-08, 09:21 PM
Last Post: sub
  Lost recordings database keith_leitch 9 3,791 2010-09-22, 09:20 PM
Last Post: keith_leitch
  Postprocessing and the recordings database shsw 1 1,507 2010-08-29, 04:46 PM
Last Post: sub
  Lost recordings database dongna 25 7,958 2010-08-26, 10:00 AM
Last Post: martint123
  PVRX2 unhandled exception - cannot access menu functions linfor 4 2,340 2010-07-31, 03:52 AM
Last Post: sub
  Strange database problem -- pvrx2 not seeing updates, EWA and Config.exe are. 86atc250r 5 2,465 2010-07-26, 10:09 AM
Last Post: martint123
  Recording stops at 4gb file size experiencebliss 5 2,426 2010-05-04, 02:54 AM
Last Post: pBS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode