NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 54 55 56 57 58 … 93 Next »
How to use MSDE(SQL Server) as GBPVR Database

 
  • 0 Vote(s) - 0 Average
How to use MSDE(SQL Server) as GBPVR Database
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#71
2005-02-15, 06:16 AM
Only possible item I could see there is that filename is a reserved word in MSDE/SQL Server. I've had to reference it as [filename] in the past.
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#72
2005-02-15, 02:32 PM
It appears in this case, the problem was the length of the filename, not the column name "filename". The DTS import brought the column over as a nvarchar(255). I just increased it to nvarchar(512) and ran the EPG update again and the following error went away!

2/15/2005 8:16:58 AM.656 ERROR [139] Unabled to save ScheduledRecording: Specified cast is not valid.
2/15/2005 8:16:58 AM.656 ERROR [139] at bn.e(ScheduledRecording A_0)

Since I don't have any Access tools, can either of you tell me what the GBPVR database is using for a column length?

-Charles
[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#73
2005-02-15, 03:04 PM
In .2313 it was a Text field of 255 characters. Not sure what it is in .9010. You can probably check the update.sql file that Sub usually includes in his distributions for any table changes that may have occured between releases.
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#74
2005-02-15, 03:46 PM
Well, I checked and the maximum data value length I have in the table is 98 characters long! I was thinking maybe sub was using a padded string that was being truncated with access and was complaining with MSDE... but I guess not. My working theory now is that sub is using a null terminated character array that must be defined as longer than 255 characters long but actually has shorter values in it.

Hey sub, One thing I did notice is that you are saving the full path including the file name in the database. In my "early" GBPVR days, I wanted to move the recorded files so I moved the files and updated the configuration but GBPVR did not recognize the change and now I understand why.

I would suggest that you not keep the path in the database, just keep the filename GBPVR generates. GBPVR should use the currently configure path and concatenate that to the filename from the DB. That way GBPVR will more gracefully and accurately handle moving of the recordings... Also GBPVR will be resistant to the use of some overly long configured path... since the user can select just about anything and GBPVR controls the filename generation.

Now having said that, I wonder if this would break some of those third party recording plug-ins...

-Charles
[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#75
2005-02-15, 04:06 PM
Personally, I'd leave the filename with the full path as it is right now. Wait until after 1.0 is out the door, before looking at changing anything major like how filenames are handled and stored until after 1.0, too many plugins rely on this information.
Ericwiz
Offline

Member

Posts: 68
Threads: 12
Joined: Jan 2005
#76
2005-02-17, 06:14 PM
2/15/2005 8:16:58 AM.656 ERROR [139] Unabled to save ScheduledRecording: Specified cast is not valid.
2/15/2005 8:16:58 AM.656 ERROR [139] at bn.e(ScheduledRecording A_0)



Sounds like a NULL value issue.
Try this: Go into the tables and set all the fields to allow nulls. Then run this again and then go look at the data.
cginzel
Offline

Member

Posts: 192
Threads: 22
Joined: Dec 2004
#77
2005-02-17, 06:51 PM
[b Wrote:Quote[/b] (Ericwiz @ Feb. 17 2005,12:14)]Sounds like a NULL value issue.
Try this: Go into the tables and set all the fields to allow nulls. Then run this again and then go look at the data.
No. I'm pretty sure the problem is the size of the filename column. Changing the width to 512 fixed this problem without changing null column settings...

-Cahrles
[SIZE="1"]NextPVR v2.3.4 on XP Home SP2
Rig: Dual Core P4 2.8GHz, 3GB Ram + 230GB HD
Media: WinTV PVR-150/MCE (2) + Media MVP 1000 (1) vD3A
Tools/Plug-ins: Weather, ComSkip, NEWA[/SIZE]
DaveParker
Offline

Junior Member

Posts: 23
Threads: 4
Joined: Jan 2005
#78
2005-03-06, 01:57 PM
Hmm, anyone know a way to get Video Archiver to use SQL Server instead of its "video archive.mdb" file?
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#79
2005-03-06, 06:02 PM
Well, I would guess that it would be similiar on how to get GBPVR to use MSDE/SQL Server.

1. You'll need to import the Video Archiver database tables into a Database in MSDE.

2. Once that is done, you'll need to change the Provider that Video Archive is expecting to use. If it is using OLEDB (which I believe it is), then you be able to change it just like the GBPVR setting, but make it point to the Video Archiver database in the SQL Server.

As long as there aren't any Access specific SQL being used, you should be good to go.
RonCS
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Jul 2005
#80
2005-07-11, 08:20 PM
Hi,

It my first post here, so please be gentle! I've been playing with version 0.92.11 of GBPVR on a test box I have, trying to get a MSDE backend to function. I seem to be getting quite a few errors, that I believe I have tracked down to a possible typo in a delete function, this appears when I try and delete a source, it never succeeds and I am left with multiple sources, and a program table for of data. The line in question is:

delete from PROGRAMME p where channel_oid not in (select c.oid from CHANNEL c, SOURCE_CHANNEL_MAPPING scm where c.oid = scm.channel_oid)

I have looked though the forum, and seen that 'sub' answers with words of wisdom. Any advice??

Also has anyone got the definitive schema for MSDE?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (15): « Previous 1 … 6 7 8 9 10 … 15 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Determine Server Tuner/Recorder Status from Console App 27InchSony 13 8,293 2016-12-21, 05:03 AM
Last Post: mvallevand
  Looking for C# UPnP Media Server code bgowland 5 7,647 2016-12-16, 08:25 PM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 33,727 2015-08-20, 05:11 PM
Last Post: sub
  Delete recordings from database but not from disk? spinnaker 8 3,826 2013-10-26, 10:51 PM
Last Post: spinnaker
  trying to fake npvr database for unit tests reven 3 2,266 2013-05-20, 08:53 AM
Last Post: reven
  Roku & GBPVR pvruser 16 11,523 2011-10-16, 08:31 PM
Last Post: pvruser
  (Yet Another) Rename Helper script for GBPVR & NPVR pvruser 2 2,733 2011-07-22, 01:27 AM
Last Post: pvruser
  Merged database queries mvallevand 4 2,091 2011-06-26, 09:56 PM
Last Post: mvallevand
  NPVR database questions mvallevand 25 9,875 2011-01-06, 12:58 AM
Last Post: jksmurf
  NPVR database - why so stringy with the fields?? :0) carpeVideo 4 2,039 2010-09-21, 01:48 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode