Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# El Gringo 6/22/2006 5:58 AM (edited 6/22/2006 7:02 AM)
Hello,

i am trying to install Cuyahoga 0.9.0 using a MSDE. But when I call
http://localhost/Cuyahoga/Install/Install.aspx
I get
Cuyahoga Installation
An error occured while installing the database tables:
System.Exception: An error occured while executing the following script [PATH TO CUYAHOGA]\Web\Install\Core\Database\mssql2000\install.sql ---> System.Data.SqlClient.SqlException: Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs. Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs. Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs. Bei der Konvertierung eines char-Datentyps in einen datetime-Datentyp liegt der datetime-Wert außerhalb des gültigen Bereichs. Die Anweisung wurde beendet. Die Anweisung wurde beendet. Die Anweisung wurde beendet. Die Anweisung wurde beendet. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Cuyahoga.Core.Util.DatabaseUtil.ExecuteSqlScript(String scriptFilePath) in [PATH TO CUYAHOGA]\Core\Util\DatabaseUtil.cs:line 93 --- Ende der internen Ausnahmestapelüberwachung --- at Cuyahoga.Core.Util.DatabaseUtil.ExecuteSqlScript(String scriptFilePath) in [PATH TO CUYAHOGA]\Core\Util\DatabaseUtil.cs:line 105 at Cuyahoga.Core.Service.DatabaseInstaller.Install() in [PATH TO CUYAHOGA]\Core\Service\DatabaseInstaller.cs:line 121 at Cuyahoga.Web.Install.Install.btnInstallDatabase_Click(Object sender, EventArgs e) in [PATH TO CUYAHOGA]\Web\Install\Install.aspx.cs:line 133
Create Database
The installer will first install the database. After that you have to set the password for the default administrator.

The database for the following components wil be installed:
Cuyahoga Core 0.9.0
Cuyahoga Core Modules 0.9.0

Anyone has an idea?

Thanks

El

EDIT:
I am not shure, but after a few debugs I think the scripts crashes here:
SET IDENTITY_INSERT cuyahoga_role ON
# mgaerber 6/22/2006 7:17 AM
Hi,

this is most probably because of missing

SET DATEFORMAT 'ymd'

statements in the script files.

I created a patch but it has to be integrated to SVN yet...
# El Gringo 6/22/2006 7:36 AM
Hi mgaerber,

thanks, you are rigth. I found that is wasn' t at
SET IDENTITY_INSERT cuyahoga_role ON

it was at
INSERT INTO cuyahoga_role (roleid, name, inserttimestamp, updatetimestamp, permissionlevel) VALUES (3, 'Authenticated user', '2004-01-04 16:34:50.271', '2004-06-25 00:59:02.822', 2)
INSERT INTO cuyahoga_role (roleid, name, inserttimestamp, updatetimestamp, permissionlevel) VALUES (2, 'Editor', '2004-01-04 16:34:25.669', '2004-06-25 00:59:08.256', 6)
INSERT INTO cuyahoga_role (roleid, name, inserttimestamp, updatetimestamp, permissionlevel) VALUES (1, 'Administrator', '2004-01-04 16:33:42.255', '2004-09-19 17:08:47.248', 14)
INSERT INTO cuyahoga_role (roleid, name, inserttimestamp, updatetimestamp, permissionlevel) VALUES (4, 'Anonymous user', '2004-01-04 16:35:10.766', '2004-07-16 21:18:09.017', 1)

and
INSERT INTO cuyahoga_template (templateid, [name], basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (1, 'Cuyahoga Home', 'Templates/Classic', 'CuyahogaHome.ascx', 'red.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365')
INSERT INTO cuyahoga_template (templateid, [name], basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (2, 'Cuyahoga Standard', 'Templates/Classic', 'CuyahogaStandard.ascx', 'red.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365')
INSERT INTO cuyahoga_template (templateid, [name], basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (3, 'Cuyahoga New', 'Templates/Default', 'CuyahogaNew.ascx', 'red-new.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365')
INSERT INTO cuyahoga_template (templateid, [name], basepath, templatecontrol, css, inserttimestamp, updatetimestamp) VALUES (4, 'Another Red', 'Templates/AnotherRed', 'Cuyahoga.ascx', 'red.css', '2004-01-26 21:52:52.365', '2004-01-26 21:52:52.365')

So I just changed the dates to german dates ( the database has a german format; Eg. 2004-26-01 21:52:52.365). And it worked fine. (h)

Thanks

El Gringo
# martijnb 6/23/2006 6:42 AM
I still wonder why the German SQL Server doesn't accept the yyyy-mm-dd format. I mean, this is the most culture-neutral format available (ISO) and only (yes, only) a German SQL Server can't handle these dates.

Not that we can do anything about this (except forcing the date format), just ranting ;).
# GroennDemon 7/9/2006 2:25 PM
I'm having the same problem and I've found this thread at Google Groups.

It says that yyyymmdd is understood by MSSQL, whilst yyyy-mm-dd may cause trouble. I'm changing this in the SQL files now and I hope it'll work... wish me luck.
# GroennDemon 7/9/2006 2:30 PM
Worked! :)
# mgaerber 7/10/2006 9:38 AM
Great, that's even easier then setting it explicitly, can you create a JIRA issue for this, so we integrate your solution?