Welcome Guest Search | Active Topics | Log In | Register

2 Pages 12>
1.9.3 Beta DB Installation Error Options · View
herman_herman
#1 Posted : Wednesday, May 28, 2008 8:00:54 AM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
Hello

Clean installation of 1.9.3 Beta gives the following error:



Windows XP SP2
SLQ 2000 SP4

Regards
touradg
"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
Jaben
#2 Posted : Wednesday, May 28, 2008 9:51:53 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
Interested... I just tested a fresh install of v1.9.3 BETA. I didn't test on SQL 2000 though...
"When you are grateful, fear disappears and abundance appears”."

Jaben
#3 Posted : Wednesday, May 28, 2008 10:22:02 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
Got it... Just open up the tables.sql file and modify this line:

Code:
DROP INDEX [IX_{objectQualifier}User_ProviderUserKey] ON [{databaseOwner}].[{objectQualifier}User]


and change to...

Code:
DROP INDEX [{databaseOwner}].[{objectQualifier}User].[IX_{objectQualifier}User_ProviderUserKey]
"When you are grateful, fear disappears and abundance appears”."

herman_herman
#4 Posted : Wednesday, May 28, 2008 12:01:34 PM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
Hi Jaben,
Fixed.Now this one:



"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
herman_herman
#5 Posted : Wednesday, May 28, 2008 7:16:37 PM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
any idea?
"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
herman_herman
#6 Posted : Saturday, May 31, 2008 2:14:56 PM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
Hi
I really don't want to create overhead for yaf developers but I simply can not test and translate this beta.
The script is just ok in SQL2005 but not in SQL2000.Most of my friends have the same problem on 2000.
I googled it and tried to fix the script but with no luck.I guess that it happens because of the fact that In a DELETE, INSERT, or UPDATE command, SQL Server (2000) does not allow text, ntext, or image column references in the inserted and deleted tables.I found an interesting aarticle here which may help you:

Managing ntext, text, and image Data in SQL2000

Regards
Touradg
"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
rtech
#7 Posted : Sunday, June 01, 2008 10:03:59 AM
Rank: Advanced Member



Joined: 8/31/2007
Posts: 50
Location: Persia (Iran) the land of Greater cyrus
help me plz :

herman_herman
#8 Posted : Sunday, June 01, 2008 10:07:30 AM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
rtech wrote:
help me plz :



This is the first problem i had.See the third reply by the jaben.


"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
Jaben
#9 Posted : Monday, June 02, 2008 1:19:14 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
herman_herman wrote:
any idea?

Try replacing (in procedures.sql) with this and re-running install:

Code:

create procedure [{databaseOwner}].[{objectQualifier}board_poststats](@BoardID int) as
BEGIN
      SELECT
            Posts = (select count(1) from [{databaseOwner}].[{objectQualifier}Message] a join [{databaseOwner}].[{objectQualifier}Topic] b on b.TopicID=a.TopicID join [{databaseOwner}].[{objectQualifier}Forum] c on c.ForumID=b.ForumID join [{databaseOwner}].[{objectQualifier}Category] d on d.CategoryID=c.CategoryID where d.BoardID=@BoardID AND (a.Flags & 24)=16),
            Topics = (select count(1) from [{databaseOwner}].[{objectQualifier}Topic] a join [{databaseOwner}].[{objectQualifier}Forum] b on b.ForumID=a.ForumID join [{databaseOwner}].[{objectQualifier}Category] c on c.CategoryID=b.CategoryID where c.BoardID=@BoardID AND (a.Flags & 8) <> 8),
            Forums = (select count(1) from [{databaseOwner}].[{objectQualifier}Forum] a join [{databaseOwner}].[{objectQualifier}Category] b on b.CategoryID=a.CategoryID where b.BoardID=@BoardID),
            Members = (select count(1) from [{databaseOwner}].[{objectQualifier}User] a where a.BoardID=@BoardID AND (Flags & 2) = 2 AND (a.Flags & 4) = 0),
            MaxUsers = (SELECT CAST([Value] as nvarchar(255)) FROM [{databaseOwner}].[{objectQualifier}Registry] WHERE LOWER(Name) = LOWER('maxusers') and BoardID=@BoardID),
        MaxUsersWhen = (SELECT CAST([Value] as nvarchar(255)) FROM [{databaseOwner}].[{objectQualifier}Registry] WHERE LOWER(Name) = LOWER('maxuserswhen') and BoardID=@BoardID),            
            LastPostInfo.*,
            LastMemberInfo.*
      FROM
            (
                  SELECT TOP 1
                        LastMemberInfoID= 1,
                        LastMemberID      = UserID,
                        LastMember      = [Name]
                  FROM
                        [{databaseOwner}].[{objectQualifier}User]
                  WHERE
                        (Flags & 2) = 2
                        AND (Flags & 4) = 0
                        AND BoardID = @BoardID
                  ORDER BY
                        Joined DESC
            ) as LastMemberInfo
            left join (
                  SELECT TOP 1
                        LastPostInfoID      = 1,
                        LastPost      = a.Posted,
                        LastUserID      = a.UserID,
                        LastUser      = e.Name
                  FROM
                        [{databaseOwner}].[{objectQualifier}Message] a
                        join [{databaseOwner}].[{objectQualifier}Topic] b on b.TopicID=a.TopicID
                        join [{databaseOwner}].[{objectQualifier}Forum] c on c.ForumID=b.ForumID
                        join [{databaseOwner}].[{objectQualifier}Category] d on d.CategoryID=c.CategoryID
                        join [{databaseOwner}].[{objectQualifier}User] e on e.UserID=a.UserID
                  WHERE
                        (a.Flags & 24) = 16
                        AND (b.Flags & 8) <> 8
                        AND d.BoardID = @BoardID
                  ORDER BY
                        a.Posted DESC
            ) as LastPostInfo
            on LastMemberInfoID=LastPostInfoID
END
GO
"When you are grateful, fear disappears and abundance appears”."

Jaben
#10 Posted : Monday, June 02, 2008 1:19:48 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
Let me know if that works...
"When you are grateful, fear disappears and abundance appears”."

herman_herman
#11 Posted : Monday, June 02, 2008 7:04:27 AM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
Hello Jaben,
It worked. Good job. I got couple of more db installation errors. What I did was to just remove each section that had error to go on with the rest of the scripts and to check all of them at one.

Here is the result:

After fixing the second problem by using “SELECT CAST([Value] as nvarchar(20))” I came to another similar one at line 3687 file procedures.sql:





I remove the procedure to go on with the rest of the scripts and it brought me to this at line 106 file Providers/Tables.sql:



As you can see both are very similar to those we already have. I tried to fix using the methods you have used but I jut end up syntax error Cheesy Grin
I didn’t get any other error after that. But I was not able to run the forum too. It gave me some errors regarding different variables (Null to string), which is quite normal as I have removed some procedures and tables. And therefore variables do not exist.

Regards
Touradg
"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
rtech
#12 Posted : Monday, June 02, 2008 7:16:09 AM
Rank: Advanced Member



Joined: 8/31/2007
Posts: 50
Location: Persia (Iran) the land of Greater cyrus
Jaben wrote:
Let me know if that works...


thanks , but now this error :


Jaben
#13 Posted : Monday, June 02, 2008 1:31:09 PM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
Hey guys... Try the updated attached SQL. It replaces SQL in \provider too.
File Attachment(s):
UpdateSQL.zip (64kb) downloaded 16 time(s).
"When you are grateful, fear disappears and abundance appears”."

herman_herman
#14 Posted : Monday, June 02, 2008 2:24:50 PM

Rank: YAF All-the-Time



Joined: 5/19/2007
Posts: 186
Location: Persia (Iran) the land of Greater Darius
Hi
Now this one:

"Our greatest glory is not in never falling but in rising every time we fall - Confucius"
Jaben
#15 Posted : Monday, June 02, 2008 11:34:59 PM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,950
Location: Honolulu, HI
Messed up on that one. I updated the SQL again -- try download one more time
"When you are grateful, fear disappears and abundance appears”."

Users browsing this topic
Guest
2 Pages 12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.170 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET