Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - column does not allow nulls. INSERT fails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

column does not allow nulls. INSERT fails

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

Joined: 13 July 2002
Location: United Kingdom
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote balearicjobs Quote  Post ReplyReply Direct Link To This Post Topic: column does not allow nulls. INSERT fails
    Posted: 27 May 2009 at 9:06am
Hi all

I am in the process of moving web hosts.

I used Microsoft SQL Server Management Studio and the import data wizard to migrate my SQL database from Jodohost to Fasthosts.

The migration reported no errors, and when I change the connection to the Fasthosts SQL server it appears to work (I can unlock the forum for example), however when I try and make a test post I get the following error message

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_topic_data
File Name:- new_post.asp

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


I would really appreciate any advice. Please be gentle, I'm learning on the fly with this stuff, I'm far from a website developer.

Thank you.


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: 27 May 2009 at 2:59pm
The import/export tools in SQL Server Manager will not work as they don't export the whole database schema and drop many things like the increment fields and default values, so is totally no good for doing this.

The way you need to move the database is to create a backup of the database (a .bak file) then restore it on your new hosts system. Unfortunately Fasthosts don't give you a facility to restore a database backup on their systems so you maybe out of luck moving to them for hosting.

Another option is moving your forum hosting to our own servers as we also have a migration service so can do the migration for you, upgrade your forum to the latest release, and go through and check and fix your database at the same time. All our hosting packages include the Premium Edition of web wiz forums and you also get free upgrades. For more information see our Web Hosting Pages.
Back to Top
balearicjobs View Drop Down
Groupie
Groupie
Avatar

Joined: 13 July 2002
Location: United Kingdom
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote balearicjobs Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2009 at 5:41pm
Cheers Bruce

I have had a look at your packages and have signed up with one!

Word of warning to the rest of you... I had a though time cancelling with Fasthosts even though I was only 1 day into the cooling off period and there are loads of complaints on the internet that say similar. A little tip if you ever find yourself in that position, I phoned back, said I didn't understand the technical nature of the problem (that bit is pretty honest :-) ) and that somebody else was designing my website, they cancelled my account. Only took 5 people and 45 minutes on the phone. LOL
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2009 at 6:24pm
Ummmm... well that's another reason why I'm with Bruce too Thumbs Up
You will find that the way he does business is much more pleasurable and less problematic, and he has (in my opinion) been a good and reliable host to go with
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.