Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - converting from access database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

converting from access database

 Post Reply Post Reply
Author
Binji View Drop Down
Newbie
Newbie


Joined: 23 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Binji Quote  Post ReplyReply Direct Link To This Post Topic: converting from access database
    Posted: 23 February 2010 at 2:39am
First of all hello to all and i hope you will be able to help me.
I have tried upscaling access database to MSSQL server and the data in the database seems ok but when i open the forum none of the special utf8 characters are displayed properly. Its the same thing with MySQL. 
I tried fresh install and posting something with special characters which displays fine. However in the database its not displayed as it should be. 
So Im guessing this forum uses a different encoding for database connection? If so which one and can i use utf8 to connect to my database?
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: 23 February 2010 at 8:52am
There is not a different connection string for the database for UTF-8 encoding.

You did not mention which tolls you used to migrate the database, as this has a lot to do with keeping the encoding the same.

I've always found the upsize wizard in Access is very good at upsizing the database, however for SQL Server 2008 you need to use 'Microsoft SQL Server Migration Assistant 2008 for Access' which is more tricky as you have to go through the database after and remove any constraints that should not have been created.

You should also check the collocation of your database. Unless you changed it by default it shoudl be Latin1_General_CI_AS which I find works fine for UTF-8. You should also check that the data type for string fields is nvarchar as this also supports UTF-8.
Back to Top
Binji View Drop Down
Newbie
Newbie


Joined: 23 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Binji Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2010 at 12:18pm
Sorry... the server version is 2005.
I imported the data as latin1 and it works so far. Except for a few errors in import process anyway. I imported it in mySQL with Navicat Premium.
Gonna try to import it in MS SQL next...
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: 23 February 2010 at 12:37pm
The mySQL version uses a very different schema than the Access and SQL Server versions and so you are unlikely to migrate the database from Access to mySQL and have a stable forum.

You should instead go from Access to SQL Server as the database schemas are very much the same.
Back to Top
Binji View Drop Down
Newbie
Newbie


Joined: 23 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Binji Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2010 at 7:43pm
I will if you tell me how to do that. If i upscale from Access it migrates fine but all the special characters are messed up. And i cant find any way to first convert everything to latin before migrating. Not even if i set the mssql database collation to latin.
With MySQL i dumped the database, converted it into ANSI and reimported it. Here it seems id sooner invent my own database than accomplish this....
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: 24 February 2010 at 10:20am
I already said in a previous post regarding the datatypes used for the storage of text data using nvarchar
Back to Top
Binji View Drop Down
Newbie
Newbie


Joined: 23 February 2010
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Binji Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2010 at 11:26pm
Hi its me trying my hand at it again..
So this is what i did:
created new MSSQL database (it created it as Slovenian_CI_AS as default so i changed it to Latin1_General_CI_AS)
used migration assistant to migrate data
installed forum as an upgrade
result: still not ok :( If i set encoding to Win-1250 its almost right but i dont get any č, ć characters. I did set the data types translations to nvarchar where possible.
Which constraints would i have to remove and how do i remove them?

Then i created MySQL database as UTF8 and imported database structure. Then i imported data from Access DB using Navicat 8 but it could import all of it because of errors (probably due to encoding differences - data too long for some columns). I know i already managed to import it without errors but i have no idea which encodings i used...
What i did get still had same problems as MSSQL database so i tried replacing all characters with characters forum recognizes. Which worked except that search doesnt work (i assume this is responsible because i tried searching on a fresh install and it works) and of course the fact of missing records...

Right now im probably gonna try also replacing characters in database in MSSQL with Win-1250 and UTF8 characters and see it if works...

edit: turns out some of the errors are also of type "Duplicate entry 'some entry' for key 3" for tblauthor for example... seems database restraints are the problem since if i import directly without first creating a structure the import goes fine (except still for some invalid values errors...). The forum also doesnt work properly aftewards of course...

edit2: seems the "Duplicate entry" is due to the fact some of the users have special characters in their username and something in the import process cannot handle that. For example it seems to take boštjan and bostjan as same value... Im not 100% but fairly certain that is the case..


Edited by Binji - 01 April 2010 at 1:18am
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.