| [URL]http://www.viagra.tovaglia.org[/URL] [URL]h 2006-10-25, 6:06 am |
|
> Hello.
>
> I'm pretty new to SQL Server (switching from Visual FoxPro).
>
> I'm developing a database that will store, amongst other things, names
> and addresses of people from all over the world (approx 100,000
> records). Up to now, I've always used a flat model of storing address
> data using fields:
>
> Address line 1
> Address line 2
> Town/City
> County/State
> Postcode/ZIP
> Country
>
> But this model doesn't cater very well for the intricacies of postal
> systems all over the world. There is also redundancy, particularly with
> fields Line2, County/State, Postcode/ZIP, which are not needed for many
> countries.
>
> It also occurs to me that using multiple fields like this in a table
> with several fields gives no indication of the linked nature of the
> information. For example, if the town field is changed, then chances
> are that some of the other lines of the address become obsolete unless
> they are changed at the same time.
>
> So I have been thinking about storing the address in an XML structure
> in a single field. This will allow me, where necessary, to break down
> address data into smaller units where known (e.g. premise name, premise
> number, apartment number), or if a breakdown is not known to store
> chunks of data together. It also then allows me the flexibility to
> re-build the data in an appropriate order (e.g. for an address label)
> relevant for the particular country/language - for example number
> before/after street; postcode before town/separate line at the end.
>
> An example fragment might be:
>
> <address>
> <streetaddress>
> <premisename>Oak Cottage</premisename>
> <premisenumber>15</premisenumber>
> <streetname>Greenhill</streetname>
> <streettype>Crescent</streettype>
> </streetaddress>
> <locality>
> <village>Little Hampton</village>
> <town>Rickmansworth</town>
> <county>Hertfordshire</county>
> </locality>
> <postcode>WD3 3UH</postcode>
> <country>UK</country>
> </address>
>
>
> Bearing in mind some of this data will need to be searchable
> (especially postcode, country, and possibly town), are the possible
> benefits of this going to be outweighed by vast amounts of extra work,
> and a performance penalty, or does it sound like a good practical use
> of the XML data type?
>
> Any comments gratefully appreciated.
>
> Ben
[URL]http://www.viagra.tovaglia.org[/URL] [URL]http://www.tetta.tovaglia.org[/URL] [URL]http://www.chi.sensibilita.org[/URL] [URL]http://www.teatro.sensibilita.org[/URL] [URL]http://www.puglia.giunzione.org[/URL] [URL]http://www.giro.sensibili
ta.org[/URL] [URL]http://www.virgilio.tovaglia.org[/URL] [URL]http://www.fiori.giunzione.org[/URL] [URL]http://www.taormina.sensibilita.org[/URL] [URL]http://www.erotico.giunzione.org[/URL] [URL]http://www.bambini.tovaglia.org[/URL] [URL]http:
//www.verona.sensibilita.org[/URL] [URL]http://www.corriere-della-sera.sensibilita.org[/URL] [URL]http://www.universita.sensibilita.org[/URL] [URL]http://www.natura.giunzione.org[/URL] [URL]http://www.pagine-bianche.sensibilita.org[/URL] [URL]ht
tp://www.gazzetta.tovaglia.org[/URL] [URL]http://www.bikini.giunzione.org[/URL] [URL]http://www.novella.sensibilita.org[/URL] [URL]http://www.azzurra.tovaglia.org[/URL] [URL]http://www.filosofia.giunzione.org[/URL] [URL]http://www.casa.tovaglia.
org[/URL] [URL]http://www.grecia.giunzione.org[/URL] [URL]http://www.ringtone.tovaglia.org[/URL] [URL]http://www.del-piero.tovaglia.org[/URL] [URL]http://www.tempo.sensibilita.org[/URL] [URL]http://www.rossi.sensibilita.org[/URL] [URL]http://w
ww.musica-latina.giunzione.org[/URL] [URL]http://www.ryanair.sensibilita.org[/URL] [URL]http://www.pornografia.giunzione.org[/URL] [URL]http://www.giovanni.tovaglia.org[/URL] [URL]http://www.bianchi.giunzione.org[/URL] [URL]http://www.bella.tova
glia.org[/URL] [URL]http://www.ebay.sensibilita.org[/URL] [URL]http://www.orgia.giunzione.org[/URL] [URL]http://www.uomo.tovaglia.org[/URL] [URL]http://www.vero.tovaglia.org[/URL] [URL]http://www.pesca.giunzione.org[/URL] [URL]http://www.ferra
ri.giunzione.org[/URL] [URL]http://www.inter.tovaglia.org[/URL] [URL]http://www.festa.giunzione.org[/URL] [URL]http://www.sesso.giunzione.org[/URL] [URL]http://www.motori.tovaglia.org[/URL] [URL]http://www.gianna.sensibilita.org[/URL] [URL]htt
p://www.solo.sensibilita.org[/URL]
Posted from http://www.topxml.com/renntp using reNNTP: the website based NNTP reader.
|