Welcome to Sign in | Help

Insert

  •  08-11-2008, 5:01 PM

    Insert

    Salut. Ma poate ajuta cineva cu o procedura de insert ?

    Am urmatoarea problema.
    am un xml trimis ca parametru la baza de date ceva gen :
    <Selected Item>
    <Language Id="1" />
    <Language Id="2" />
    ..............................
    <Location Id="1" />
    <Location Id="3" />
    ..............................
    <Type Id="2" />
    <Type Id="5" />
    ..............................
    </Selected Item>
    si un JobId="x";

    acum tot ce trebuie sa fac este sa adaug in tabela Language valorile:
     
    Jobid=x Language=1
    JobId=x Language=2
    ................................
    JobId=x Location=1
    JobId=x Location=3
    ................................
    Jobid=x Type =2
    JobId=x Type=5
    ................................

    si tot asa.
    Ideea este ca primesc un xml si trebuie sa fac asociez id fiecarui nod din xml si sa il adaug intr-o tabela.
    Vreo idee stralucica si simplu de utilizat?
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems