Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL Error

 Post Reply Post Reply
Author
__n3o__ View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2005
Location: United Kingdom
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote __n3o__ Quote  Post ReplyReply Direct Link To This Post Topic: SQL Error
    Posted: 12 January 2007 at 7:03am
Wonder if anyone might be able to point me in the right direction?  I have just uploaded the latest version of WWF onto a new server.  I am using SQL 2005 Express...  It works find until I try to post..

Server Error in Forum Application
An error has occured while writing to the database.
Please contact the forum administrator.

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

Error details:-
Microsoft OLE DB Provider for SQL Server
Cannot insert the value NULL into column 'Thread_ID', table 'tblThread'; column does not allow nulls. INSERT fails.

I am sure I have given read and write permission to users on the SQL Db?
Back to Top
__n3o__ View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2005
Location: United Kingdom
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote __n3o__ Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 8:54am
Seems I can update posts and settings...  I just can't insert?  Any ideas why its not getting the thread_ID?
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: 12 January 2007 at 9:57am
It looks like you database is not setup correctly.

SQL Server should use an identity seed to automatically create a number for the Thread_ID.

Make sure that the default values for your database have been setup.
Back to Top
__n3o__ View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2005
Location: United Kingdom
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote __n3o__ Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 12:56pm
Hi Bruce...

Unfortunately this is a long story...  This is a SQLDb thats been exported to access and upsized to SQL Angry...  (Its a long story!)

Where should I look to find what the default values should be??  Thanks
Back to Top
__n3o__ View Drop Down
Groupie
Groupie
Avatar

Joined: 08 November 2005
Location: United Kingdom
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote __n3o__ Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2007 at 7:37pm
Dam....  It seems the whole thing is playing up

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

Cannot insert the value NULL into column 'Forum_ID', table 'tblForum'; column does not allow nulls. INSERT fails.

/forum/admin_forum_details.asp, line 213

Think I had better have a look at the DB in detail... or start again Cry
Back to Top
nomadtx View Drop Down
Newbie
Newbie


Joined: 24 December 2006
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote nomadtx Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2007 at 5:55am
i am getting the same error.  how did you fix this?
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.