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
Darryl
Offline

Junior Member

Posts: 15
Threads: 1
Joined: Jan 2006
#111
2006-01-21, 03:11 AM
sub Wrote:The only database related thing that happens next is:

Object returnObject = indentityQuery.ExecuteScalar();
int programOID = (int)System.Decimal.ToInt32(returnObject);

To me this looks correct, but if it isnt, then tell me what it should be. It obviously works fine with access.


The error must be occuring somewhere later in the code.

The error message

ERROR [3] Failure in ChannelFactory:ConfusedtoreChannels(): Specified cast is not valid.

indicates the error is in ChannelFactory:ConfusedtoreChannels() .

Is it possible to release a test version of the file that contains this function with a whole lot of extra debugging statememts scattered through it? It might help track down the problem.

Darryl
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#112
2006-01-21, 04:27 AM
I can add some more diagnostic messages in the next release. My build has moved on too far to give you an updated version of this file.
JonRoyle
Offline

Member

Posts: 98
Threads: 13
Joined: Feb 2006
#113
2006-04-17, 10:52 AM
Reading through the link I can see that people have tried MySQL. Has anyone got it to reliably work?

I have MySQL 4.1 running on the server (for websites) and wanted to try and use rather than Access. I have managed to upload Access DB to MySQL (using the excellent Migration Toolkit) but I am unable to connect.

.net and odbc connectors are installed for MySQL, and GBpvr config has been changed to
<DatabaseConnectionString>Provider=MySQLProv;Data Source=(local);User Id=gbpvr;Password=password</DatabaseConnectionString>

However I repeatedly get the error "The 'MySQLProv' provider is not registered on the local machine"

Can anyone advise what I am doing wrong?

Thanks

Jon
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#114
2006-04-17, 04:23 PM
Quote:Reading through the link I can see that people have tried MySQL. Has anyone got it to reliably work?
No, it wont work with MySQL. Much of the SQL is incompatible.
Urbansk
Offline

Junior Member

Posts: 31
Threads: 1
Joined: May 2006
#115
2006-05-21, 05:56 PM
Hi all!

Trying to use SQL2005 Express with gbpvr.

When trying to update the EPG i get this message:


2006-05-21 19:30:01.357 ERROR [4] Failure in ChannelFactory:ConfusedtoreChannels(): System.Data.OleDb.OleDbException: The name "Y" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at GBPVR.Backend.Common.ChannelFactory.x091b0bb67b0c21bd(ICollection xb539b3782652833f, Int32 xeba3e20435eb0e32)
2006-05-21 19:30:01.357 ERROR [4] Error UpdateEPG()'ing: System.Data.OleDb.OleDbException: The name "Y" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted.
at GBPVR.Backend.Common.ChannelFactory.x091b0bb67b0c21bd(ICollection xb539b3782652833f, Int32 xeba3e20435eb0e32)
at GBPVR.Backend.Common.xbdfb880686f2538b.x52e8ddd0b9bc8c68(xda34526142ca690b x347261624b519e9a, IEpgUpdateProgressCallback x421ce789b9741187)
at Config.xca74b9c9b310df0b.xcba1f05fb5a46d5f()

From SQL Server Profiler i get this:

exec sp_executesql N'insert into CHANNEL (name, channel_number, favourite_channel) values (@P1,@P2,"Y")',N'@P1 nvarchar(13),@P2 int',N'Animal Planet',102

Any suggestions?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#116
2006-05-21, 06:34 PM
What data type have you used for the favourite_channel column?
Urbansk
Offline

Junior Member

Posts: 31
Threads: 1
Joined: May 2006
#117
2006-05-21, 07:28 PM
Hi!

Here is the DDL for that table:

USE [gbpvr]
GO
/****** Object: Table [dbo].[CHANNEL] Script Date: 05/21/2006 21:25:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[CHANNEL](
[oid] [int] IDENTITY(1,1) NOT NULL,
[name] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[channelID] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[channel_number] [int] NULL,
[favourite] [bit] NOT NULL CONSTRAINT [DF__CHANNEL__favouri__03317E3D] DEFAULT ((0)),
[favourite_channel] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [aaaaaCHANNEL_PK] PRIMARY KEY NONCLUSTERED
(
[oid] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#118
2006-05-21, 07:38 PM
You probably need to use nvarchar(1) rather than 'text'.
Urbansk
Offline

Junior Member

Posts: 31
Threads: 1
Joined: May 2006
#119
2006-05-21, 07:55 PM
Hi!

Tried it with no success! Still get the same error message.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#120
2006-05-21, 08:48 PM
Sorry, I dont know. The only database I've tested are MS Access and SQLite.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (15): « Previous 1 … 10 11 12 13 14 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,284 2016-12-21, 05:03 AM
Last Post: mvallevand
  Looking for C# UPnP Media Server code bgowland 5 7,645 2016-12-16, 08:25 PM
Last Post: mvallevand
  TitanTv Remote Schedule For GBPVR UncleJohnsBand 51 33,718 2015-08-20, 05:11 PM
Last Post: sub
  Delete recordings from database but not from disk? spinnaker 8 3,824 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,517 2011-10-16, 08:31 PM
Last Post: pvruser
  (Yet Another) Rename Helper script for GBPVR & NPVR pvruser 2 2,730 2011-07-22, 01:27 AM
Last Post: pvruser
  Merged database queries mvallevand 4 2,086 2011-06-26, 09:56 PM
Last Post: mvallevand
  NPVR database questions mvallevand 25 9,872 2011-01-06, 12:58 AM
Last Post: jksmurf
  NPVR database - why so stringy with the fields?? :0) carpeVideo 4 2,037 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