Click here to Skip to main content
16,004,678 members
Home / Discussions / Database
   

Database

 
AnswerRe: A Transact-SQL Question Pin
Grav-Vt17-Nov-05 12:56
Grav-Vt17-Nov-05 12:56 
Questionscope identity not a function name Pin
kal2na216-Nov-05 19:37
kal2na216-Nov-05 19:37 
AnswerRe: scope identity not a function name Pin
Grav-Vt17-Nov-05 12:57
Grav-Vt17-Nov-05 12:57 
QuestionCheck for a string of SPACE characters Pin
Chris Meech16-Nov-05 9:06
Chris Meech16-Nov-05 9:06 
QuestionSQL code coverage Pin
Paul Watson16-Nov-05 3:23
sitebuilderPaul Watson16-Nov-05 3:23 
QuestionRe: SQL code coverage Pin
Chris Meech16-Nov-05 9:10
Chris Meech16-Nov-05 9:10 
AnswerRe: SQL code coverage Pin
Paul Watson16-Nov-05 9:22
sitebuilderPaul Watson16-Nov-05 9:22 
QuestionTying a XML playlist to SQL data Pin
normschaef15-Nov-05 11:56
normschaef15-Nov-05 11:56 
Hi all:

I'm pretty new at db programming, but over the past year have a come to a decent understanding of connections, data adapters, and datasets. Here's something though that I just can't think through.

Here's what I'd like to do.

1. My music collection and audio file information are in a MSDE database with several tables containing workid (PK), artist information, style, filename (location of the sound file), etc.
2. I created XML file to use as a playlist, something like
<playlist>
<workid>2</workid>
<workid>15</workid>
<workid>4</workid>
<workid>47</workid>
</playlist>
3. I saved the file something like saturdaynightmusic.xml
4. Using the Build Schema tool in VS Studio, I created a schema that joins the Music table with the XML playlist with workid as the key.
5. Now I have a .xsd file which contains the relationship, an .xml file to control the order of play, and a database table with fields pointing to the audio files, album and artist info.

However, I can't for the life of me, figure out how to make them work together.
Conceptually, I've got it - Read each element in the XML file, put them into a list (such as a list box), select first song in the list, it populates the fields with the artist info, title, then plays, the next song is selected, played .... until the end.

Here's how I think it could be done...
1. The XML playlist workid is stored as a variable.
2. The variable is added to a select command which is then run against a view or stored procedure
3. The database returns the information which is bound to textboxes, lists, and the filename variable to play the audio file.
4. Loop through the above steps until the end of the list

Am I on the right track???

Thanks for any help in clarifying this for me.
Norm

-- modified at 17:58 Tuesday 15th November, 2005
Questionschema design question Pin
ppp00115-Nov-05 6:44
ppp00115-Nov-05 6:44 
AnswerRe: schema design question Pin
Daniel Santillanes15-Nov-05 7:00
professionalDaniel Santillanes15-Nov-05 7:00 
GeneralRe: schema design question Pin
toxcct16-Nov-05 5:24
toxcct16-Nov-05 5:24 
QuestionDataSet - Query problem Pin
Timothy_198215-Nov-05 5:47
Timothy_198215-Nov-05 5:47 
AnswerRe: DataSet - Query problem Pin
Daniel Santillanes15-Nov-05 6:49
professionalDaniel Santillanes15-Nov-05 6:49 
GeneralRe: DataSet - Query problem Pin
Timothy_198215-Nov-05 7:36
Timothy_198215-Nov-05 7:36 
GeneralRe: DataSet - Query problem Pin
Daniel Santillanes15-Nov-05 12:18
professionalDaniel Santillanes15-Nov-05 12:18 
QuestionNo Row Returned Pin
Brendan Vogt14-Nov-05 17:43
Brendan Vogt14-Nov-05 17:43 
AnswerRe: No Row Returned Pin
Colin Angus Mackay14-Nov-05 20:21
Colin Angus Mackay14-Nov-05 20:21 
Questionconnecting to a database..needs help Pin
JustmeNick14-Nov-05 5:52
JustmeNick14-Nov-05 5:52 
QuestionSQL Server does not exist or access denied. Pin
smita_roy13-Nov-05 21:30
smita_roy13-Nov-05 21:30 
AnswerRe: SQL Server does not exist or access denied. Pin
ricardojb14-Nov-05 17:20
ricardojb14-Nov-05 17:20 
QuestionInternal Processor Error Pin
lovelylooney13-Nov-05 21:26
lovelylooney13-Nov-05 21:26 
Questiondiff b/w ado and ado.net Pin
expertdeveloper13-Nov-05 20:18
expertdeveloper13-Nov-05 20:18 
AnswerRe: diff b/w ado and ado.net Pin
toxcct16-Nov-05 5:31
toxcct16-Nov-05 5:31 
Questionproblem with Sqlparameters :( Pin
da vinci coder13-Nov-05 13:09
da vinci coder13-Nov-05 13:09 
AnswerRe: problem with Sqlparameters :( Pin
Colin Angus Mackay13-Nov-05 13:21
Colin Angus Mackay13-Nov-05 13:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.