Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New Topic error (ms sql)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New Topic error (ms sql)

 Post Reply Post Reply
Author
Atvforum.dk View Drop Down
Newbie
Newbie


Joined: 30 August 2009
Location: Denmark
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Atvforum.dk Quote  Post ReplyReply Direct Link To This Post Topic: New Topic error (ms sql)
    Posted: 18 November 2009 at 8:03pm
Hi.
I just upgraded to MS sql 2008.
 
It works fine, but when I want to create a new topic, this error shows:
 
Server Error in Forum Application
An error has occurred while writing to the database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_save_new_topic_data
File Name:- new_post.asp

Error details:-
Microsoft OLE DB Provider for SQL Server
The INSERT statement conflicted with the CHECK constraint "SSMA_CC$tblTopic$Icon$disallow_zero_length". The conflict occurred in database "atvforum_dk_db", table "dbo.tblTopic", column 'Icon'.
 
..................
 
When a user wants to create a account this error shows:
 
Support Error Code:- err_SQLServer_register_USR
File Name:- register.asp

Error details:-
Microsoft OLE DB Provider for SQL Server
The INSERT statement conflicted with the CHECK constraint "SSMA_CC$tblAuthor$Skype$disallow_zero_length". The conflict occurred in database "atvforum_dk_db", table "dbo.tblAuthor", column 'Skype'.
 
How can I correct the errors?
 
Thank you for helping...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2009 at 8:43am
I have seen these issues before when you use the Microsoft SQL Server Migration Assistant 2008 for Access.

When you use this tool to upsize the database from Access to SQL Server it places in allot of extra constraints in the database which are not required.

To fix the issue follow the steps below:-

1. Open the database in SQL Server Management Studio 2008
2. Right click on each database table and select 'Design' from the menu
3. On the right hand side you will see the table design shown, Right click on anywhere there is white space in the same pane and select 'Check Constrains...'
4. In the Check Constraints window if there are any constraints listed for the table delete them
5. Once the Constraints are removed close the Constraints Window and Save the table

That should be it the database should be running fine after that, however you should also download the Database Optimsation Tool from the link below so that the important indexes are rebuilt:-

http://www.webwiz.net/webwizforums/webwizforums_downloads.asp

Back to Top
Atvforum.dk View Drop Down
Newbie
Newbie


Joined: 30 August 2009
Location: Denmark
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Atvforum.dk Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2009 at 12:32pm
Ok, I'll try that.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.