Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Script for updating Relastionships?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Script for updating Relastionships?

 Post Reply Post Reply
Author
McTurok View Drop Down
Newbie
Newbie


Joined: 16 June 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote McTurok Quote  Post ReplyReply Direct Link To This Post Topic: Script for updating Relastionships?
    Posted: 05 September 2006 at 5:22pm
Hi Everyone,

I just installed 8.03 on a new server, but I did this from an update from 7.x.

What I did was transfer over my current forums via MS Eterprise Mgr. This created all my tables (7.x) and brought over all my data along with it to my new MSSQL server.

I then ran the update script to upgrade to 8.x tables. This worked fine too.

I'm now trying to update the new forum permissions and I'm getting this error.

Quote

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

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

/forum/admin_forum_details.asp, line 308



I'm guessing it's becuase during the transfer to my new server the relationship between the tables was not kept.

Any sql scripts I can run to update these relationships?

Thanks,
Chris
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: 06 September 2006 at 11:25am
It looks like in the transfer process you lost the default values for tables, the relationships are not important but the index's they create could effect performance.

I would try using a different method to move your SQL Server database in Enterprise Manager until you find a method that will work for you and move across the default value also.
Back to Top
McTurok View Drop Down
Newbie
Newbie


Joined: 16 June 2003
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote McTurok Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2006 at 3:19pm
I've discovered the problem. I re-did everything and I was getting the same result.

I had to go into the permissions table and change all fields to allow nulls to get rid of the error and discovered that it is not inserting the Author_ID into the table.

This is the problem and I'm not sure why or how to fix it.

Any ideas why I can log on fine but yet this field is not being stored correctly?


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: 06 September 2006 at 4:24pm
You can transfer your SQL Server database using SQL Server but the way you are presently doing is not correct.

I no-longer use SQL Server Enterprise Manager but as far as I recall you need to select the import/export DTS tool  then select the configuration option that allows the must number of choices, then go through the screens selecting to have everything copied over except permissions and server roles. By doing it this way it should also copy across index's, default values, etc. for your database.
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.