Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Mod - SQL Full-Text Searching
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StephenD
Senior Member

Australia
1044 Posts

Posted - 28 August 2004 :  07:15:25  Show Profile  Send StephenD a Yahoo! Message
I got my ISP to do the required changes but he reported the following error when tryimg to do the index for Forum_Reply:

'FORUM-REPLY' table
- Unable to create index 'IX_FORUM_REPLY'
ODBC error: CREATE UNIQUE INDEX terminated because a duplicate key was found for index ID 10. Most significant primary key is '2'

Every other table worked - Forum_Topics, Forum_A_Topics, Forum_A_Reply

Any ideas?

StephenD
Senior Member

Australia
1044 Posts

Posted - 28 August 2004 :  21:58:09  Show Profile  Send StephenD a Yahoo! Message
Tried to do a search anyway and got the following error:

Microsoft OLE DB Provider for SQL Server error '80040e14'

Cannot use a CONTAINS or FREETEXT predicate on table 'FORUM_TOPICS' because it is not full-text indexed.

/search_mssqlft.asp, line 193

Does this mean the index was not created successfully fot this table?
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 30 August 2004 :  17:06:07  Show Profile  Send StephenD a Yahoo! Message
Just bumping up to top...
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 30 August 2004 :  17:18:08  Show Profile
Looks like you have a error in your reply table that allowed a duplicate record with the same reply_id to be created. You'll have to find the duplicates and decided what to do with them. Run the SQL code below to find the offending records. What's either disturbing or good news, is that the first problem record is number 2. So, either it was an error early on in the installation and it's easy to clean up, or it's been happening since post number 2 and you'll find quite a few of them.

If the creating of the unique index was unsuccesful, then the table would not be able to be indexed, hence the second error.

select reply_id from forum_reply group by reply_id having (count(*) > 1)

KawiForums.com


Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 30 August 2004 :  17:33:31  Show Profile  Send StephenD a Yahoo! Message
I keep getting an 'invalid object name 'forum_reply' error in osql. I've got the db open with access at the moment. What am I looking for? Duplicate reply_ids?
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 30 August 2004 :  17:40:19  Show Profile  Send StephenD a Yahoo! Message
I copied the entire reply_id column (480 rows only) into excel and ran a scan for duplicates macro which returned no results.
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 30 August 2004 :  19:08:04  Show Profile
The error is saying that the reply_id column has a duplicate entry where reply_id=2. The SQl script that creates IX_FORUM_REPLY only indexes the reply_id column so the duplicate has to be there unless there is a problem with the SQL install itself, like maybe a corupted database.

KawiForums.com


Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 30 August 2004 :  21:00:35  Show Profile  Send StephenD a Yahoo! Message
OK reply_id=2 does not exist. MY db is less than 5MB zipped. Is it worth sending to you to have a look at Gary please?
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 30 August 2004 :  21:49:39  Show Profile
If you have a SQL backup file, then post it up somewhere and send me a link. If it's an Access dump or something, then that's not going to help.

KawiForums.com


Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 30 August 2004 :  23:01:33  Show Profile  Send StephenD a Yahoo! Message
Its an SQL backup, but I won't be able to get hold of it till I get home tonight. I'll send you a link then. Thanks for your help.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07