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 Access
 To SQL Server and Back Again
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

intranetwise
Starting Member

USA
9 Posts

Posted - 07 November 2006 :  18:01:54  Show Profile  Visit intranetwise's Homepage
I am starting to host an old forum that I did not create and need to use MS Access with it. The problem is that the forum had been converted to SQL Server 2000. They sent me a backup file which I recreated the SQL Server database with and then imported the tables into Access. The problem I have, you guessed it, are with the Autonumbers--they are imported as a Number field because there is already data in that field. How do I get around this or is there a better way to convert it back to Access?

THANKS!

Podge
Support Moderator

Ireland
3775 Posts

Posted - 07 November 2006 :  18:31:41  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Start with a blank Access database. Edit config.asp to point to this database. Run setup.asp and let the forum create all the tables, etc. Export the forum data to this Access database from Sql Server using DTS (Export data in Enterprise Manager).

I did it the above way once and it worked for me. Can't remember if there were any other problems though.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 November 2006 :  07:08:11  Show Profile  Send ruirib a Yahoo! Message
You should make sure that the data is transferred maintaing the identity of the existing records in SQL Server. You will need to have enable identity insert while transferring the data from SQL Server to Access.


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

intranetwise
Starting Member

USA
9 Posts

Posted - 10 November 2006 :  13:29:35  Show Profile  Visit intranetwise's Homepage
First, thanks to both of you for the advice and giving it so quickly.

I should have mentioned that I restored the database from the SQL Server 2000 backup using SQL Server 2005 Express which does not have DTS. I am running Windows XP Pro and that was the only version I had installed.

Following your advice, I installed SQL Server 2000 Personal Edition (having Enterprise but not a server running an OS for it anymore) and restored the original backup. I can export it enabling the identity insert now BUT when I imported the backup with Personal it did not retain the autonumbers like Express did--UGH :).

Any ideas on why this is or another way to handle this short of setting up another server with Windows 2000 Server and install Enterprise just to export this small database?

Thanks again!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 November 2006 :  14:02:20  Show Profile  Send ruirib a Yahoo! Message
I think I lost you sowhere along the way... Where were the autonumbers lost?

Did you do as Podge recommended above, start with a fresh Snitz db, then ran setup.asp to create the tables, and only then do the import? Alsom when using DTS, did you configure it to delete existing table data, instead of dropping and recreating the tables? The latter would lead you to no autonumbers in Access...


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

intranetwise
Starting Member

USA
9 Posts

Posted - 10 November 2006 :  14:58:33  Show Profile  Visit intranetwise's Homepage
LOL, yes, I am lost too. I have tried this 10 different ways at least. This should be incredibly easy! :) Here are three ways I tried to do it:

First, I restored the backup using 2005 Express, which retained the autonumbers. But, when I linked the tables (in Access) and exported them to a new Access database, they were converted to numbers.

Second, I restored the backup using 2000 Personal, which did not retain the autonumbers from the backup at all. So I could not use DTS.

Third, in despiration, I took the Access database I created that did not contain the autonumbers and attempted to copy the data to the original Snitz Forum Access database (with the autonumbers) using DTS (deleting the existing data and enabling identity insert). This copied all of the tables but 4 and errored out on them (because they were linked it wouldn't just copy the data).

The last one was the closest I got but I do not know how to get the other 4 tables to copy over.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 November 2006 :  15:02:19  Show Profile  Send ruirib a Yahoo! Message
If you have the SQL DB and care to make me have access to it, I can try and do it for you. Email me, if you're interested.


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

intranetwise
Starting Member

USA
9 Posts

Posted - 10 November 2006 :  15:03:36  Show Profile  Visit intranetwise's Homepage
Forgot to mention, I did try what Podge recommended but I am guessing this version of the forums is so old it does not create the tables automatically??? I also downloaded the new version but the database is different so I am not sure if I could just copy over the existing database and the forum would work?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 November 2006 :  15:09:07  Show Profile  Send ruirib a Yahoo! Message
What Snitz version are you using?


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

intranetwise
Starting Member

USA
9 Posts

Posted - 10 November 2006 :  15:20:13  Show Profile  Visit intranetwise's Homepage
It says Snitz Forums 2000 Version 3.3.05 in the database. There are several new tables in the new version. Do you think it would copy over easily (and work, of course) :)?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 November 2006 :  15:27:07  Show Profile  Send ruirib a Yahoo! Message
You can recreate the tables by running setup.asp?RC=5. Do you have a Snitz 3.3.x .mdb database to start with?


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

intranetwise
Starting Member

USA
9 Posts

Posted - 10 November 2006 :  21:20:57  Show Profile  Visit intranetwise's Homepage
When I try to recreate the tables I get an asp error that says it cannot find input table 'FORUM_CONFIG_NEW'.

With a little rigging, I was able to import the data into the database that comes with the new version of the forums. The forums display and you can drill down into the posts but you cannot login. Is there a script somewhere that would let me copy the data in the old database into the new one and everything work?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 November 2006 :  05:53:04  Show Profile  Send ruirib a Yahoo! Message
The way the password is handled in 3.4.x is different from 3.3.x, since the 3.4.x has password encryption. You would need an upgrade to get the passwords properly converted...

There is a way to force that, but I can't be sure about it now. I would still think that using a 3.3.x database would be the better option.


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

intranetwise
Starting Member

USA
9 Posts

Posted - 12 November 2006 :  13:46:12  Show Profile  Visit intranetwise's Homepage
Okay, I think I got it figured out. First, I downloaded the new forum and copied it into the old forum with the old database (Access database I created without the autonumbers). Running setup.asp, I converted the database to the new database format. Finally, I ran DTS to copy the newly updated Access database (without the autonumbers) into the blank database that came with the new forum. No errors and it seems to be working. Testing to follow :)

Thanks again for all your help!!!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 November 2006 :  14:09:33  Show Profile  Send ruirib a Yahoo! Message
Well glad that you got it working .


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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07