Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

mailing list members format

 
   Database Help (Home) -> XML RSS
Next:  Making anouncement only mailing list service (tab..  
Author Message
Andy B

External


Since: Feb 13, 2008
Posts: 215



(Msg. 1) Posted: Sun Oct 26, 2008 6:23 am
Post subject: mailing list members format
Archived from groups: microsoft>public>sqlserver>xml (more info?)

I am making an announcement only mailing list service for the company
website. I am trying to figure out if I should make a single table for the
lists and then create an xml column to keep all of the list members or if I
should do something different. Any ideas?

 >> Stay informed about: mailing list members format 
Back to top
Login to vote
Joe Fawcett

External


Since: Jan 19, 2008
Posts: 38



(Msg. 2) Posted: Mon Oct 27, 2008 7:25 am
Post subject: Re: mailing list members format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Andy B" wrote in message

>I am making an announcement only mailing list service for the company
>website. I am trying to figure out if I should make a single table for the
>lists and then create an xml column to keep all of the list members or if I
>should do something different. Any ideas?
>
>
Unless you have a particular not to I would just do this in a traditional
fashion. A table for lists, one for members and one that links the two as
one member can join many lists and one list can have many members.
I see no advantage in using XML in this instance and it will mean more work
constructing queries to update membership of lists etc.

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

 >> Stay informed about: mailing list members format 
Back to top
Login to vote
Andy B

External


Since: Feb 13, 2008
Posts: 215



(Msg. 3) Posted: Mon Oct 27, 2008 8:58 am
Post subject: Re: mailing list members format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Got a simple example for the many to many relations?


"Joe Fawcett" wrote in message

>
> "Andy B" wrote in message
>
>>I am making an announcement only mailing list service for the company
>>website. I am trying to figure out if I should make a single table for the
>>lists and then create an xml column to keep all of the list members or if
>>I should do something different. Any ideas?
>>
>>
> Unless you have a particular not to I would just do this in a traditional
> fashion. A table for lists, one for members and one that links the two as
> one member can join many lists and one list can have many members.
> I see no advantage in using XML in this instance and it will mean more
> work constructing queries to update membership of lists etc.
>
> --
>
> Joe Fawcett (MVP - XML)
>
> http://joe.fawcett.name
>
>
 >> Stay informed about: mailing list members format 
Back to top
Login to vote
Joe Fawcett

External


Since: Jan 19, 2008
Posts: 38



(Msg. 4) Posted: Tue Oct 28, 2008 4:25 am
Post subject: Re: mailing list members format [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well if your table of lists has a ListId (int) as its primary key and your
Member table has a MemberId (int) as its primary key then you have two basic
choices for the linking table:

ListId int
MemberId int

where the two fields, which reference the List ands Member tables make a
composite primary key or

ListMemberId int
ListId int
MemberId int

where the first field in the primary key, possibly an identity field, so
auto-populated.

You can then use this table to join the others and produce a resultset that
shows all lists and all members.

--

Joe Fawcett (MVP - XML)

http://joe.fawcett.name

"Andy B" wrote in message

> Got a simple example for the many to many relations?
>
>
> "Joe Fawcett" wrote in message
>
>>
>> "Andy B" wrote in message
>>
>>>I am making an announcement only mailing list service for the company
>>>website. I am trying to figure out if I should make a single table for
>>>the lists and then create an xml column to keep all of the list members
>>>or if I should do something different. Any ideas?
>>>
>>>
>> Unless you have a particular not to I would just do this in a traditional
>> fashion. A table for lists, one for members and one that links the two as
>> one member can join many lists and one list can have many members.
>> I see no advantage in using XML in this instance and it will mean more
>> work constructing queries to update membership of lists etc.
>>
>> --
>>
>> Joe Fawcett (MVP - XML)
>>
>> http://joe.fawcett.name
>>
>>
>
>
 >> Stay informed about: mailing list members format 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
using xml format to import data to sql 2k - Hi, 1. Instead of text delimiter, an xml format data could imported to sql 2k tables? 2. The same way import text files? --fast and less resource? what is the benefit of using xml instead of T-sql 3. How do I generate an xml format table schma? Thanks

Unable to custom format XML with For XML Explicit - Hi, Is it possible to format any kind of XML file with the FOR XML EXPLICIT mode in SQL Server 2005? I am asking because I am trying to format my file in a way that I could get 2 or 3 elements on my parent or child level and put some attributes (icon pat...

How to set date format as mm/dd/yyyyThh:mm:ss.ttttZ+00:00? - Hi, I use "For XML" statement to export xml, all are my expected. But the datetime field value is not my expected format(e.g. ModifiedDate="2005-05-16T16:33:33.060"), Can I force the sql server's xml date format including timezo...

xml to SQL DB - We have some large existing Xml files that we'd like to store in the SQL server. We don't want to store just the Xml stream, but we rather like to build the hierarchical structure that represents the Xml in SQL and store the Xml that way. We also want...

how to store a word document in sql server - I Need help on how to store a word document in sql server.what datatype and how to convert it to store it. Pleas Help Thank you
   Database Help (Home) -> XML All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]