Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Access / SQL differences
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Access / SQL differences

 Post Reply Post Reply
Author
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Topic: Access / SQL differences
    Posted: 25 April 2003 at 7:27am
Couldn't find any previous reference to this, so:

I have a live v7 forum now, running on Access.

My friendly server owner has suggested moving to the SQL version, which I'm more than happy to do.

With the exception of the DB (naturally!) are there any differences between the distributions? If so, what? I don't want to start customising my installation now, if I have to replace all the pages when I move to SQL.

I see a lot of the .asp files have paired functions in (one for access, one for SQL) - does this mean there's just a single (or limited number of) files / variables one has to change?

Ta
www.pedalcars.info

The most fun on four wheels

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: 25 April 2003 at 7:46am

Just change one variable in the common.asp files and add your SQL srever login details into the SQL_server_Connection.asp file fopund in the admin area.

'Database Type
'strDatabaseType = "Access"
strDatabaseType = "SQLServer"

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2003 at 8:03am
Fantastic, that's what I was hoping for. Top stuff.
www.pedalcars.info

The most fun on four wheels

Back to Top
neilcarter View Drop Down
Newbie
Newbie


Joined: 25 August 2002
Location: United Kingdom
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote neilcarter Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2003 at 1:52pm

As the "friendly server owner" I thought I would give this a try. I have set up another copy of V7 on the server, created the database, and run the scripts to create the tabels etc. No problem I now have a working SQL version of the forum with no data.

I then tried to use DTS to move the data from the access database to SQL at it throws are3 large number of Violation of primary key errors. I would be grateful for any suggestions.

 

Neil

Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Post Options Post Options   Thanks (0) Thanks(0)   Quote pedalcars Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2003 at 9:33am
Ooh eck, that doesn't sound pretty...

Help, anyone? People must have done this before, although I guess the number of people who have migrated from v7 access to v7 SQL is going to be limited, v7 having only been out about a week!!

Ta
www.pedalcars.info

The most fun on four wheels

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: 27 April 2003 at 10:58am

Remove the database form the SQL server, then use the Access Upsize wizard to upsize the database choosing the option to create a new database on the SQL server and also make sure you arn't using a DSN with the upsize wizard otherwise it won't create the primary keys and default values.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2003 at 8:26am
But if you use DTS make sure to enable identity insert in the transformation options...
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.