Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support


Go Back   Australian Media Center Community > XP Media Center 2005 > XP Media Center 2005 - Plugins & Addons > Other MCE Addons

Community Information

Reply
 
Thread Tools
Old 8th February 2006, 03:00 AM   #1 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
media center database!

i replace my question in the right place!


I am trying to reproduce behaviour of Lineup Editor powertoy and we have a question regarding the storage of information.


i found that some info is writen in prefs.xml but also some in sdf file (D:\Documents and Settings\All Users\Application Data\Microsoft\eHome\EPG\)

It seems it is a database format but we do not found information about about how database table are used.

the question to sum up is : is the source code of an exemple that open, change and save .sdf file ) available somewhere ? It would help me to reproduce the full behaviour


thanks, toto
  Reply With Quote
Old 8th February 2006, 08:49 PM   #2 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

in other words, i want to access "media center datase", in order to modify some informations. it seems all informations are stocked in a sdf file just here -> D:\Documents and Settings\All Users\Application Data\Microsoft\eHome\EPG\xxxxxx.sdf

i want to modify this file, and for the moment i just want to open it and take a look!
i use an query tool from Daniels but doesn't work!

Daniels blog
MCE database query :

http://httpcode.com/blogs/posts/663.aspx

i develop a microsoft visual studio application in c#(via pocket pc and sqlce), i success in creating, modifying and saving sdf file but i don't success in openening mce.sdf!

i ve got this error message: file corrupted......repair utility.....




so if someone knows how to open this file and modify it, could you give me some advices! and tell me if i am on the wrong way!

thanks,
toto
  Reply With Quote
Old 10th February 2006, 12:51 PM   #3 (permalink)
MCE Apprentice
No Avatar
Status dan_p is Offline:
ActivityPosts: 41
Reputation & Thanks Support Rating:
dan_p
Points Earned: 12

dan_p has been Thanked 0 times in 0 posts
Re: media center database!

What is the error you get from my Database Query tool? have you made sure that .net security is turned off first? (caspol -security off)

It's been a while since I've used this tool, there could be problems with rollup 2 I guess ...
  Reply With Quote
Old 10th February 2006, 05:42 PM   #4 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

hello dan, thanks for reply!
i made sure that .net security is turned off first (caspol -security off) with the right version
of framework

and then your application start and just after i ve got an alert message -> "cannot find table 0" (just see the affach file)

thanks, thomas
Attached Images
File Type: jpg mce query tool.JPG (22.9 KB, 64 views)
  Reply With Quote
Old 10th February 2006, 06:00 PM   #5 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

I've got few more questions to ask to you, if i could?

I would like to have more details on the format sdf and mediacenter! is it sqlce or sqlLite?
usualy this type of file is used with sqlce but i'am not sure they use sqlce with media center. I just have a look on QuickGuide sources and it seems to be SqlLite!
they have used Microsoft.Ehome.Epg.Helper and Microsoft.Ehome.Epg.Database; and SqlLite commands.

if you could tell me more, i would be happy.
regards, thomas
  Reply With Quote
Old 10th February 2006, 07:35 PM   #6 (permalink)
MCE Apprentice
No Avatar
Status dan_p is Offline:
ActivityPosts: 41
Reputation & Thanks Support Rating:
dan_p
Points Earned: 12

dan_p has been Thanked 0 times in 0 posts
Re: media center database!

Yeah its SQLLite, it shares the same file extension as the mobile SQL stuff, but thats it.

If I recall correctly those assemblies Microsoft.Ehome.Epg.Helper and Microsoft.Ehome.Epg.Database are the ones to reference.

Also the static property EpgFileHelper.CurrentEpgFile gives you the path to the current epg database.

So the code to open a database connection is:
SqlLiteConnection c = new SqlLiteConnection();
c.Init(EpgFileHelper.CurrentEpgFile, false);
c.Open();

The code to run a query is the same as any .net example you'll find.

The problem you describe 'can't find table 0' means that the sql that got executed didn't return any results, try running some different sql on some other tables (I think I had a list on my blog post)


  Reply With Quote
Old 13th February 2006, 05:42 PM   #7 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

thanks a lot!
  Reply With Quote
Old 13th February 2006, 06:05 PM   #8 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

nice tool!! it would help me a lot!!
i could do what i want now!

merci beaucoup
regards, thomas
  Reply With Quote
Old 14th February 2006, 03:19 AM   #9 (permalink)
Newbie
No Avatar
Status tombidibuzz is Offline:
ActivityPosts: 8
Reputation & Thanks Support Rating:
tombidibuzz
Points Earned: 10

tombidibuzz has been Thanked 0 times in 0 posts
Re: media center database!

few more questions...... sorry!

after having ran caspol to disable the .NET security before you run your tool, i succed in opening all tables in ordrer to learn more about mce database! but i've got a last problem!
i don't succed in modifying datas in mce database
i have tried to modify directly in the dataset and use save function, or run sqllite command in the edit control and then "run" but as a result it seems that nothing has happened!

should i do something wrong, or is there someting special to do to modify datas?

in my addins wrote in c# i succed in opening mce datase and saving and the data in an XML document, but when i want to start to modify the datas............. nothing

i don't succed in modifying and inserting or updating......
have you got an idea ?

thanks, thomas
  Reply With Quote
Reply

Bookmarks

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP Media Center Extender Mike Media Center News 24 19th February 2006 10:52 AM
What Can You Do with a Media Center PC? (part 1) Mike Media Center Articles & Guides 0 27th March 2005 10:02 AM
The Media Center PC as Part of Your Home Entertainment System Mike Media Center Articles & Guides 0 27th March 2005 09:51 AM
Selecting a Media Center PC Mike Media Center Articles & Guides 0 27th March 2005 09:38 AM
Selecting a Media Center PC Mike Media Center News 0 25th March 2005 08:38 AM


Advertisers




Terms Of Service - Contact Us - Advertise With Us - Archive - Privacy Statement - FAQ
Microsoft©, Windows XP©, Windows XP Media Center© & Windows Vista© are registered trademarks of Microsoft Corporation.
www.xpmediacentre.com.au has no relationship with, nor is affiliated in any way with Microsoft Corporation.
All original content on this website © 2004 - 2008 xpmediacentre.com.au, All rights reserved
Forum by vBulletin Version 3.7.3 - Copyright Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
Local time now is 09:54 AM AEDT.