Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Cannot insert NULL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cannot insert NULL

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

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Topic: Cannot insert NULL
    Posted: 07 June 2006 at 10:50am
Hello,   

I have a problem with the SQLServer base at my hosting (installation with a script mssql wwForum.bak) coming from my local Server.

When one tries to be registered with the forum veiled the error message which one obtains:

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

Support Error Code:- err_SQLServer_register_USR File Name:- register.asp Error details:- Microsoft OLE DB Provider for SQL Server Cannot insert the value NULL into column 'Login_attempt', table 'heb788_.Patrick.tblAuthor'; column does not allow nulls. INSERT fails.

I specify that that functions without errors on my local Server.              


In the administration if I try to create a new group I have this error message:

Microsoft OLE DB Provider for SQL Server error '80040e2f'
Cannot insert the value NULL into column 'Starting_group', table 'heb788_.Patrick.tblGroup'; column does not allow nulls. INSERT fails.
/Forumsql/admin_group_details.asp, line 146

What to make??         

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: 07 June 2006 at 11:27am
It looks like by using the SQL script method you are using has not created the database correctly and the default values for table columns have not been created.

You should delete all the tables from your database and start again, using the supplied SQL Server database setup installation file.
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2006 at 11:40am
I can't cause i update from vers7 (Access) to vers8 (Access) --> to SQLserver on my Server, and they are many columns more !

On my Server it works fine..

Can y Update the default values for table columns ohter side ?

I have no access to Entreprise Manager for my hosting Confused
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: 07 June 2006 at 2:56pm
It sounds like your forum is created correctly on your own server, but you need to use Enterprise Manager to move the database to your hosts SQL Server.

If you're host won't allow you to access you're SQL Server with Enterprise Manager then they are not a good web host and you should look for a new web host.
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2006 at 7:49pm
Originally posted by -boRg- -boRg- wrote:

It sounds like your forum is created correctly on your own server, but you need to use Enterprise Manager to move the database to your hosts SQL Server.

If you're host won't allow you to access you're SQL Server with Enterprise Manager then they are not a good web host and you should look for a new web host.


Yes you are true, they say it is for security... Confused
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2006 at 8:17pm
Finally i do like that :

Alter Table Patrick.tblAuthor
Add Constraint CK_no_post DEFAULT 0 FOR No_of_posts

That works, but its still some lost default values and i can't change...
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: 09 June 2006 at 9:13am
There are lots of columns that require default values.

The only solution is to go through the database on your PC with the defaults values and re-create everyone of them on your web hosts SQL server.

You could always try talking to your web host and see if they have a solution to this, if they don't allow Enterprise Manager they should put some other option in place for this type of issue.
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.