Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2007, 12:01 AM
Authorized User
 
Join Date: Jul 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multilingual Database Objects

Ok I will explain it from start.

I am working on a completely multilingual website.

Now at this point I am working on Database end.

As this is a multilingual website so I need the Language Table as show below.

--------------------------------

Language

--------------------------------

Id

RomanName

NativeName

Direction

IsVisible

--------------------------------


Next.

I have Book Table.

--------------------------------

Book

--------------------------------

Id

RomanName

NativeName

IsVisible

--------------------------------



Every thing is fine till here.



But I have a limited type of Books and each book is avalaible in different languages.



For Example I add a book translated in Arabic, Urdu and English.

These three books have different ID. But these are the translation of Same book.

And when I have this Book in Urdu By default. And need all the available languages for this book then problem occurs.



To resovle this issue I modify the Book Table and break it into 2 Tables.



--------------------------------

Book

--------------------------------

Id

RomanName

IsVisible

--------------------------------

--------------------------------

BookNative

--------------------------------

BookId

LanguageId

NativeName

--------------------------------


Then an ID will assign for the book and all available language editions have not the ID.

At this end the above mentioned goal will got.

But I explain it on another post

http://forums.asp.net/t/1145293.aspx

And they replied its not correct.

Then again I think it for some time.

And another solution will come in mind.

That make a single Table for Book

--------------------------------

Book

--------------------------------

Id

Name

IsVisible

BookGroupID

--------------------------------

And for the above mentioned goal make a separate BookGroup Table


--------------------------------

BookGroup

--------------------------------

Id

Name

IsVisible

--------------------------------

After this solution Book Table is alone.


That was all the story.

Hope you will pick it.

And reply me with some great idea.


Waiting for your reply.


 
Old August 13th, 2007, 02:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Hi there - maybe something like this?
(note the BookLanguage-table has a composed primary key)

Book
----
BookID PK
RomanName
DefaultLanguageID FK

Language
--------
LanguageID PK
Language

BookLanguage
------------
BookID PK
LanguageID PK
NativeName
IsVisible






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem inserting multilingual text into database salim C# 0 May 5th, 2007 11:11 AM
multilingual support mikedeepak Classic ASP Professional 0 July 11th, 2006 01:42 AM
Scripting database objects in dependency order cmccloskey56 SQL Server 2005 1 March 15th, 2006 10:20 PM
Multilingual database Tachyophan Access VBA 3 January 10th, 2005 10:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.