Closed GoogleCodeExporter closed 8 years ago
Before using SQL Server as the database you must create the required Database,
Schema, Tables and Views.
There is a script available in the downloads area that will assist. This script
was created using "SQL Server 2008 R2 Management Studio". You do need to be
familiar with database creation activities to do this. The initial database
creation process is not automatic.
The "version" table is the first table accessed when PVBC starts. It is used to
control minor modifications to the database schema required from time to time.
Dennis M-F
Original comment by DennisMackayFisher
on 12 Sep 2011 at 8:27
Thanks for your prompt reply.
I have already run this script. The only error was with the compatability
mode = 90 instead of 100 (SQL 2005).
The tables and view all exist. (I am familiar with the SQL Server
Enterprise Management studio and SQL Server Databases)
I did have some issues with getting the Service to connect to the database
but I have given the local account read/write access now it seems to
connect. I am at work during the day but have a sneeking suspicion that I
may not have set the default database in which case it will be pointing to
Master rather than PVHistory. If that is not the case then I have no
idea.
Original comment by doug.f...@aanet.com.au
on 13 Sep 2011 at 1:22
Doug
If you press setup/check environment does it pass those checks ok? I had some
troubles with my setup with SQL 2008, and I think I saw a similar sort of
message when I didn't have the default schema set correctly. I note it says
"Invalid object name 'version'", the table is actually pvhistory.version so if
the schema isn't right then this will cause a problem. You need to have the
default database and schema set.
Jamie
Original comment by sportsfr...@gmail.com
on 13 Sep 2011 at 4:10
If you upgrade to 1.7.0.3 (or later) the PVBC configuration program checks read
access to the database when you Save Settings or Setup / Check Environment.
This makes checking your changes faster / easier.
Dennis M-F
Original comment by DennisMackayFisher
on 13 Sep 2011 at 12:08
Is this resolved now?
Version 1.7.0.9 has been released
Dennis M-F
Original comment by DennisMackayFisher
on 21 Sep 2011 at 10:08
Dennis,
The setup/check did not pass so I have started from scratch. I downloaded the
latest version 1.7.0.9. and installed it.
I now get this error -
Database Test - Stage: Executing data reader - Exception: Invalid object name
'pvoutputlog'
The table pvhistory.pvoutputlog does exist, but I had to change the data type
to datetime for Outputday because 'Date' is not valid in SQL Server 2005.
Original comment by doug.f...@aanet.com.au
on 27 Sep 2011 at 2:14
I have now installed mySQL and get a little further.
My current problem is connecting to the SMA inverter -
Here is an extract from my log file which seems to point to the error
CSV-Export: establishing connection to plant failed!
see more detail below -
10/1/2011 10:56:34 PM :T11 PVOutput/3712 :GenDatabase.ConnectionClosed: id: 13
- creation thread: 11 - closing thread: 11 - count: 1
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager
:SunnyExplorerExtractCSV: SunnyExplorer Completed: exit code = 0
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager
:SunnyExplorerExtractCSV: Sunny Explorer - Standard Output:
CSV-Export: establishing connection to plant ...
CSV-Export: establishing connection to plant failed!
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager
:SunnyExplorerExtractCSV: Sunny Explorer - Error Output:
[01.10.2011 12:59:03.122] [SetAdapterCommand] command 1156 on adapter 16 with
result 0
[01.10.2011 12:59:03.123] [CAdptrMgrWorker::DispatchCmd] command 1156
[01.10.2011 12:59:03.123] [CAdptrMgrWorker::DispatchCmd] All needed records
have been created with res = 0
[01.10.2011 12:59:03.252] [CAdptrMgrWorker::UpdateStatus] status 1148
[01.10.2011 12:59:03.272] [WaitForAdapterStatus] result 1148
[01.10.2011 12:59:03.272] [SetAdapterCommand] command 1157 on adapter 16 with
result 0
[01.10.2011 12:59:03.273] [CAdptrMgrWorker::DispatchCmd] command 1157
[01.10.2011 12:59:14.278] [CAdptrMgrWorker::UpdateStatus] status 1212
[01.10.2011 12:59:14.307] [WaitForAdapterStatus] result 1212
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager
:SunnyExplorerExtractCSV: returning
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager
:GenDatabase.NewConnection: Connection created - id: 14 - thread: 10 - count: 2
10/1/2011 10:56:52 PM :T10 SunnyExplorerInverterManager :FindCompleteDays:
limit day: 10/1/2011 12:00:00 AM
Original comment by doug.f...@aanet.com.au
on 1 Oct 2011 at 1:06
Read this Wiki section:
http://code.google.com/p/pvbeancounter/wiki/SolvingBluetoothIssues
I would start by changing the PVBC service account from Local Service to System.
Dennis M-F
Original comment by DennisMackayFisher
on 1 Oct 2011 at 9:47
Dennis,
This has worked and it is now all working - what a great system. Thanks for
your support.
I am new to mySQL but it is working OK and will probably stay with it
despite having initially started with MS SQL Server 2005.
Thanks again for your help.
Doug Ford
Original comment by doug.f...@aanet.com.au
on 2 Oct 2011 at 9:08
Original comment by DennisMackayFisher
on 17 Oct 2011 at 9:35
Original issue reported on code.google.com by
doug.f...@aanet.com.au
on 12 Sep 2011 at 2:29