Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help with Error on SQL DB when running
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help with Error on SQL DB when running

 Post Reply Post Reply Page  12>
Author
nguyencno5 View Drop Down
Groupie
Groupie


Joined: 26 November 2003
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyencno5 Quote  Post ReplyReply Direct Link To This Post Topic: Help with Error on SQL DB when running
    Posted: 19 January 2004 at 12:23pm
Can you guys help me on this.. I'm getting the error below when running WWForum (registration new user).


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

Cannot insert the value NULL into column 'Author_ID', table 'mySQL_database_name.dbo.tblAuthor'; column does not allow nulls. INSERT fails.

Thanks in advance!
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2004 at 3:02pm
this means that you try to insert an empty value, but the field in the database doesnt support it.. make sure you have filled in all the required fields in the registration form..
Back to Top
nguyencno5 View Drop Down
Groupie
Groupie


Joined: 26 November 2003
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyencno5 Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2004 at 5:35pm
I had no problem with Access DB before.  I'm not sure how this happen.  I just recently upsized my Access DB to Ms SqL.

can you think of any thing that could cause this?

Thanks!
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 12:54pm

maybe.. have you changed any files? other than the database?

Back to Top
Jesper View Drop Down
Newbie
Newbie


Joined: 18 February 2003
Location: Denmark
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jesper Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 2:18pm

I have the same problem... upgraded from Access to MSSQL (at least I'm trying to )

 

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 2:24pm

if you pay an ISP for hosting and they support ms sql, they will probabl help yopu with upgrading.. some do it for free, as access is a pain in the ass for the hosts, and some require an additional fee(it shouldnt be very much).. this is absolutely the best way to move to ms sql if you have data in your access database that you want to keep..

Back to Top
Jesper View Drop Down
Newbie
Newbie


Joined: 18 February 2003
Location: Denmark
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jesper Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 2:36pm

ok... I've figured it out.

There's a bug in the creation of tables on the MSSQL server on Borg's behalf.

The Author_ID column in the tblAuthors table is set to 'integer'. In the Access version this is 'autonumber'. I set the Identity property of the column to 'Yes', Identity seed to 1 and finally Identity increment to 1.

That fixed that problem  ... I'm not too sure if that solution causes other problems ? Borg?

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2004 at 2:42pm
in access it should be integer (or int), but it should also be Identity Yes, key Yes, id seed 1 and id increment 1
Back to Top
 Post Reply Post Reply Page  12>

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.