Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 SQL Database Move
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

abhilashms
Starting Member

4 Posts

Posted - 08 February 2006 :  06:49:52  Show Profile
My host recently moved my database to a new host , I am not sure how e moved it at this point , I changed the IP in config.asp and then ran setup.asp

Now I am able to log in and read all the topic
but I cannot create any new objects

If I try to register a memeber

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

Cannot insert the value NULL into column 'MEMBER_ID', table 'MyDB.MyUser.FORUM_MEMBERS'; column does not allow nulls. INSERT fails.

/forum/register.asp, line 568

Same kind of errors if I try replying to a post

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

Cannot insert the value NULL into column 'TOPIC_ID', table 'MyDB.Myuser.FORUM_TOPICS'; column does not allow nulls. INSERT fails.

/Forum/post_info.asp, line 889




ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 February 2006 :  06:56:12  Show Profile  Send ruirib a Yahoo! Message
Your host didn't move the database correctly. Either they should have followed the directions given here or should have used DTS, but copying objects instead of tables. IMO, the best alternative is for them to do it again, this time doing it correctly.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 08 February 2006 :  15:21:54  Show Profile
Were you using SQL Server before the move ?

In your config.asp, what sort of database does it say that you are using ?
Go to Top of Page

abhilashms
Starting Member

4 Posts

Posted - 10 February 2006 :  07:19:21  Show Profile
Hm... got in touch with my hosting service.. apparently I am in a little situation , the original file is now lost.. So I guess I need to fix this the hardway. I understand the issue is with the identity columns getting messed up .

but since my site itself is very new there are hardly 40 + messages ,Is there some other way to fix this
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 February 2006 :  07:26:00  Show Profile  Send ruirib a Yahoo! Message
Does your question mean that you wouldn't mind losing the existing forum data?

The issue with the migration as it was done means that not only identity keys, but also default values, may not have been properly defined in the new database. The surest way would be to recreate the database. Before doing it, you could move the existing data into an Access DB and then import it back, after recreating the database, using the directions in the link I posted in my earlier reply.

To recreate the database with the proper structure, you just beed to run setup.asp like this: setup.asp?RC=5


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

abhilashms
Starting Member

4 Posts

Posted - 10 February 2006 :  07:37:19  Show Profile
Thanks Ruirib
I created a brand new databse , I created the tables using setup.asp ,
So now I have all the tables and everything is good.

Now I am frantically searching for my Acess installation cd
Meanwhile just wondering Is it possible now to transfer the data using T-SQL , bcp from my old tables to my new tables?


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 February 2006 :  07:53:36  Show Profile  Send ruirib a Yahoo! Message
Yes it's possible to transfer the data. The easiest way would be to use Enterprise Manager, though. Can't you use it?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

abhilashms
Starting Member

4 Posts

Posted - 10 February 2006 :  07:58:19  Show Profile
From our Office I am not able to connect using Enterprise Manager :(,
That port must be blocked possibly. I only have a web based enerprise manger provided by the site :(

As I said I have 23 users , around 40 + topic threads.. might be easier to do it using plain old T-SQL that installing enterprise manager on some other machine outside office netwok . and then doing it
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 February 2006 :  08:03:42  Show Profile  Send ruirib a Yahoo! Message
I don't know the web enterprise manager. Could it be used to do this, while preserving identity values? bcp I don't know it that well, hardly ever used it, but the process using T-SQL would be too tedious... several tables would need copying...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07