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: General / Classic ASP versions(v3.4.XX)
 Go back from SQL to Access?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aaron S.
Average Member

USA
985 Posts

Posted - 11 May 2002 :  15:09:30  Show Profile  Visit Aaron S.'s Homepage
My ISP seems to have terrible SQL support as the Db is always crashing!

I would like to try Access to see if it is worth converting back to it.

What is the best way to move back from SQL to Access?

--Aaron

DOWNLOAD GREAT NEW MODS HERE

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 May 2002 :  18:34:18  Show Profile  Send ruirib a Yahoo! Message
Well I've never tried it, but maybe using DTS with the SQL database as source and a clean Access Snitz DB as the destination (after removing the the few initial records a clean Access DB includes) .

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs


Edited by - ruirib on 11 May 2002 18:38:25
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 11 May 2002 :  20:22:02  Show Profile
I don't think Access supports a IDENTITY INSERT, you may run into problems with the ID fields becoming renumbered if you have any tables with non-sequential ID numbers.


======
Doug G
======
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 May 2002 :  22:29:59  Show Profile  Send ruirib a Yahoo! Message
Doug is right, DTS won't work, I believe because of the Identity insert (I just ran a small test to check). There is another, although envolving more effort approach: import all SQL tables to Access through ODBC. As far as I know all data will likely be adequately imported.

Primary and foreign keys won't be defined as such after the import, but you can configure each table individually and fix that afterwards. You'll also need to setup table relationships, but this hypothese looks viable to me.

Anyhow I only played with it a bit. If you do it you'll need to test the resulting DB quite thouroughly to be sure everything really works...

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs


Edited by - ruirib on 11 May 2002 22:55:55
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 May 2002 :  23:13:14  Show Profile  Send ruirib a Yahoo! Message
Just an update on this: the import strategy seems to work, after some tests I've made on my forum (small number of members and posts though).

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 12 May 2002 :  00:47:03  Show Profile  Visit Aaron S.'s Homepage
Is there a list of primary keys / relationships?

--Aaron

DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 12 May 2002 :  07:56:56  Show Profile  Send ruirib a Yahoo! Message
To be sure you'd probably need to have look at a clean database.

Anyway a good quick guide would be the field names. Anything with a name that terminates with an ID should either be a primary key, index or foreign key. I'm writing this from the top of my head, but my description probably covers all situations.
I've seen sometimes where the primary key is composed (like in FORUM_TOPICS). I'd say that is really not necessary (you could just use TOPIC_ID as primary key and the others as normal indexes).

Anyway with these "rules of thumb" I'm sure you can fix the imported DB structure in no time.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
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.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07