Retrieving OpenXml data without 'with' clause

I have a stored procedure which takes input as XML parameter which converts that into a table.My problem is that I don't to use 'with' clause in select statement when i retrieve data from openXml.
Here My code.
DECLARE @DocHandle int
DECLARE @XmlDocument nvarchar(1000)
SET @XmlDocument = N'<ROOT>
<Customer CustomerID="VINET" ContactName="Paul Henriot">
<Order OrderID="10248" CustomerID="VINET" EmployeeID="5"
OrderDate="1996-07-04T00:00:00">
<OrderDetail ProductID="11" Quantity="12"/>
<OrderDetail ProductID="42" Quantity="10"/>
</Order>
</Customer>
<Customer CustomerID="LILAS" ContactName="Carlos Gonzlez">
<Order OrderID="10283" CustomerID="LILAS" EmployeeID="3"
OrderDate="1996-08-16T00:00:00">
<OrderDetail ProductID="72" Quantity="3"/>
</Order>
</Customer>
</ROOT>'
-- Create an internal representation of the XML document.
EXEC sp_xml_preparedocument @DocHandle OUTPUT, @XmlDocument
-- Execute a SELECT statement using OPENXML rowset provider.
SELECT *
FROM OPENXML (@DocHandle,'/ROOT/Customer',1) WITH (CustomerID varchar(10),---I dont want to use this
EXEC sp_xml_removedocument @DocHandle
 

Well, the WITH clause is optional. :-) If you remove it, you get a so-called
edge table. Exactly what one would use it for, I have not been able to
figure out.
But you don't need to use OPENXML at all. Here's an example using XQuery
instead:
DECLARE @x xml
SELECT @x =
  N'<Orders>
      <Order OrderID="13000" CustomerID="ALFKI"
             OrderDate="2006-09-20Z" EmployeeID="2">
         <OrderDetails ProductID="76" Price="123" Qty = "10"/>
         <OrderDetails ProductID="16" Price="3.23" Qty = "20"/>
      </Order>
      <Order OrderID="13001" CustomerID="VINET"
             OrderDate="2006-09-20Z" EmployeeID="1">
         <OrderDetails ProductID="12" Price="12.23" Qty = "1"/>
      </Order>
    </Orders>'
SELECT OrderID    = T.Item.value('@OrderID[1]',    'int'),
       CustomerID = T.Item.value('@CustomerID[1]', 'nchar(5)'),
       OrderDate  = T.Item.value('@OrderDate[1]',  'datetime'),
       EmployeeId = T.Item.value('@EmployeeID[1]', 'smallint')
FROM   @x.nodes('/Orders/Order') AS T(Item)
SELECT OrderID    = A.Item.value('@OrderID[1]',    'int'),
       ProductID  = B.Item.value('@ProductID[1]',  'smallint'),
       Price      = B.Item.value('@Price[1]',      'decimal(10,2)'),
       Qty        = B.Item.value('@Qty[1]',        'int')
FROM   @x.nodes('/Orders/Order') AS A(Item)
CROSS  APPLY A.Item.nodes('OrderDetails') AS B (Item)
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • TS1814 Can i reset my phone or factory restore my phone and retrieve my data without a computer.

    Can i reset my phone or factory restore my phone and retrieve my data without a computer.

    No, you need a computer. Or take the device to an Apple store.

  • How to save and retrieve 3D data

    Hi, all:
    I have several 3-D data and each one has a very large and different size. I saved them in 1D using Write to binary file after reshaping the data, and retrieve it after the user key in the size of the data so that my code can reshape the data into a correct size.
    My first question is, is there any way to save the data directly into a 3D format so that the user can retrieve the data without knowing the size? For example, I have the data A in 55(row)x512(column)x500(frame) and the data B in 3(row)x1004(column)x1500(frame). Is there any way to save and retrieve them without the need to know their size in advance?
    My second question is, I will generate several data set like this and save and retrieve them during data collection. I found that it always takes a long time to save the data, and longer time to retrieve the data. Is there any way better than saving in binary to reduce the time?
    I am using LV 8.2. I tried to search the previous posts for the answers but found that some downloaded examples gave me a warning that my current version couldn't support the function.
    I would very appreciate for any suggestion and example code to help me. Thank you in advance.

    By default, LabVIEW will prepend the array size when you write binary data, so all you need to do is wire an empty 3D array of the correct type to the "data type" input when you use "read binary file" and everything will fall into place. Have you tried?
    (Edit: Ahhh, Smercurio... was faster once more. ) 
    Message Edited by altenbach on 09-04-2008 02:32 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    3DBinary.png ‏6 KB

  • Need help in 'WITH CLAUSE' Query

    Hello Gurus,
    I am trying to calculate the count of distinct members for each provid.
    I am using the with clause to get information regarding the provid.
       WITH T AS
      (SELECT a.UD_ID MRR_ID,
                            A.UD_LASTNAME LAST_NAME,
                            A.UD_FIRSTNAME FIRST_NAME,
                            COUNT(DISTINCT DP.PA_PROVIDERID) PROVIDERS_ASSIGNED
                       FROM (SELECT UD.UD_ID,
                                    UD_LASTNAME,
                                    UD_FIRSTNAME
                               FROM USER_DETAILS       UD,
                                    MAP_USERS_TO_ROLES MR
                              WHERE MR.MUR_UR_ID_REF = 1000
                                AND MR.MUR_UD_ID_REF = UD.UD_ID) A,
                            D4C_PROVIDER_ASSIGNMENT DP
                      WHERE A.UD_ID = DP.PA_ASSIGNEDTO
                      AND dp.pa_status ='A'
                      GROUP BY A.UD_ID,
                               A.UD_LASTNAME,
                               A.UD_FIRSTNAME
                      ORDER BY 3 DESC)    OUTPUT of just above query without WITH clause.
    MRR_ID     LAST_NAME     FIRST_NAME     PROVIDERS_ASSIGNED
    1229    mrrTest         mrrTest         4
    1228    mrr2Last        mrr2First       5
    1230    mrr1Last        mrr1First       7
    1226    Panwar          SIngh           1
    1181    MRRLast         MRRTest         4
    1221    One             MRR             1
    1322    Thakuria        Bibhuthi        2I am creating this and get all the information to show on front end. Now I want to calculate the no of members as per the providers assigned for each MRR_ID
    Below query show the no of members for all the providers assigned to a provider.
    ex:
    SELECT * FROM (   
    SELECT COUNT(DISTINCT dmpc_hicn) countmember
    FROM D4C_HICN_PROVIDER_claims  a WHERE trim(DPMC_PROVIDER_NO) IN 
    (SELECT trim(pa_providerid)
       FROM d4c_provider_assignment
       WHERE pa_assignedto = 1181  (mrr_id)    --here i have use the mrrid from with clause and get the member count with all the columns coming from WITH CLAUSE.
       AND pa_roleid = 1000
       AND PA_STATUS ='A'
    GROUP BY a.dmpc_ss_id_ref)Right now I am using materialized view i dont wanna use the same..
    I am sending the materialized view code as well what i am doing ..
    ( SELECT SUM(member_count)member_count_bynpi ,mrr_id  FROM (
    (SELECT count(DISTINCT hp.dmpc_hicn) member_count,hp.DMPC_SS_ID_REF ,a1.ud_id mrr_id FROM  D4C_HICN_PROVIDER_claims hp ,
    (SELECT   a.UD_ID ,DP.PA_PROVIDERID
         FROM (SELECT UD.UD_ID, UD_LASTNAME, UD_FIRSTNAME
                 FROM USER_DETAILS UD, MAP_USERS_TO_ROLES MR
                WHERE MR.MUR_UR_ID_REF = 1000
                  AND MR.MUR_UD_ID_REF = UD.UD_ID) A,
              D4C_PROVIDER_ASSIGNMENT DP
        WHERE A.UD_ID = DP.PA_ASSIGNEDTO
        AND dp.pa_status ='A'
        /*AND dp.PA_ASSIGNEDTO = 1221*/) a1
        WHERE trim(a1.PA_PROVIDERID) = trim(hp.dpmc_provider_no)
        GROUP BY a1.ud_id,hp.DMPC_SS_ID_REF))
        GROUP BY mrr_id)Please help me to write the code with the materialized view. Thanks in Advance.
    Kind regards,
    UP
    Edited by: BluShadow on 22-Aug-2011 07:58
    fixed {noformat}{noformat} tags.  Please use lowercase "code" rather than uppercase "CODE" in the tags.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Probably, this may help
    WITH T1 as(
               SELECT UD.UD_ID,
                      UD_LASTNAME,
                      UD_FIRSTNAME
                FROM USER_DETAILS UD, MAP_USERS_TO_ROLES MR
                WHERE MR.MUR_UR_ID_REF = 1000
                AND MR.MUR_UD_ID_REF = UD.UD_ID)
          T2 as (SELECT a.UD_ID ,DP.PA_PROVIDERID
                 FROM T1 A, D4C_PROVIDER_ASSIGNMENT DP
                 WHERE A.UD_ID = DP.PA_ASSIGNEDTO
                 AND dp.pa_status ='A')
           T3 as(SELECT count(DISTINCT hp.dmpc_hicn) member_count,
                              hp.DMPC_SS_ID_REF ,
                               a1.ud_id mrr_id
                  FROM T2 A1 ,D4C_HICN_PROVIDER_claims hp
                  WHERE trim(a1.PA_PROVIDERID) = trim(hp.dpmc_provider_no)
                  GROUP BY a1.ud_id,hp.DMPC_SS_ID_REF)
    SELECT SUM(member_count)member_count_bynpi ,mrr_id from T3
    GROUP BY mrr_id

  • WITH-clause: performance- or readability enhancement?

    Hi,
    I was preparing for a course on with I also discuss the with-clause. Assuming it would perform better than just writing down two extra statements, I tried out the explain plan and found out that the with-clause actually performes worse. The example:
    Statment including WITH-clause:
    SQL> with country as
    2 (select c.country_id
    3 ,     c.country_name
    4 ,     c.region_id
    5 ,     r.region_name
    6 from countries c
    7 ,     regions r
    8 where c.region_id = r.region_id)
    9 select l.street_address
    10 ,     l.city
    11 ,     c.region_name
    12 from locations l
    13 ,     country c
    14 where l.country_id = c.country_id
    15 and c.country_id = 'UK'
    16 union
    17 select l.street_address
    18 ,     l.city
    19 ,     c.region_name
    20 from locations l
    21 ,     country c
    22 where l.country_id = c.country_id
    23 and c.country_id = 'NL'
    24 ;
    The cost of this executing is 11 as the explain plan tells me (dbms_xplan.display_cursor)
    Now, without WITH-clause:
    SQL> select l.street_address
    2 ,     l.city
    3 ,     c.region_name
    4 from locations l
    5 ,     (select c.country_id
    6      ,     c.country_name
    7      ,     c.region_id
    8      ,     r.region_name
    9      from countries c
    10      ,     regions r
    11      where c.region_id = r.region_id) c
    12 where l.country_id = c.country_id
    13 and c.country_id = 'UK'
    14 union
    15 select l.street_address
    16 ,     l.city
    17 ,     c.region_name
    18 from locations l
    19 ,     (select c.country_id
    20      ,     c.country_name
    21      ,     c.region_id
    22      ,     r.region_name
    23      from countries c
    24      ,     regions r
    25      where c.region_id = r.region_id) c
    26 where l.country_id = c.country_id
    27 and c.country_id = 'NL'
    28 ;
    Now explain plan tells me the cost is just 6! Why does this not perform faster. Are there examples at which it does? Or is the WITH-clause only to make the statements syntax more readable??

    Ok, here's the plan for the first query (including with) PLAN_TABLE_OUTPUT                                                                                                                                                                  
    Plan hash value: 744749920                                                                                                                                                         
    | Id  | Operation                       | Name                     | Rows  | Bytes | Cost (%CPU)| Time     |                                                                       
    |   0 | SELECT STATEMENT                |                          |       |       |    11 (100)|          |                                                                       
    |   1 |  TEMP TABLE TRANSFORMATION      |                          |       |       |            |          |                                                                       
    |   2 |   LOAD AS SELECT                |                          |       |       |            |          |                                                                       
    |   3 |    MERGE JOIN                   |                          |    25 |   700 |     4  (25)| 00:00:01 |                                                                       
    |   4 |     TABLE ACCESS BY INDEX ROWID | REGIONS                  |     4 |    56 |     2   (0)| 00:00:01 |                                                                       
    |   5 |      INDEX FULL SCAN            | REG_ID_PK                |     4 |       |     1   (0)| 00:00:01 |                                                                       
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    |*  6 |     SORT JOIN                   |                          |    25 |   350 |     2  (50)| 00:00:01 |                                                                       
    |   7 |      INDEX FULL SCAN            | COUNTRY_C_ID_PK          |    25 |   350 |     1   (0)| 00:00:01 |                                                                       
    |   8 |   SORT UNIQUE                   |                          |   100 |  5100 |    11  (64)| 00:00:01 |                                                                       
    |   9 |    UNION-ALL                    |                          |       |       |            |          |                                                                       
    |* 10 |     HASH JOIN                   |                          |    75 |  3825 |     5  (20)| 00:00:01 |                                                                       
    |  11 |      TABLE ACCESS BY INDEX ROWID| LOCATIONS                |     3 |    99 |     2   (0)| 00:00:01 |                                                                       
    |* 12 |       INDEX RANGE SCAN          | LOC_COUNTRY_IX           |     3 |       |     1   (0)| 00:00:01 |                                                                       
    |* 13 |      VIEW                       |                          |    25 |   450 |     2   (0)| 00:00:01 |                                                                       
    |  14 |       TABLE ACCESS FULL         | SYS_TEMP_0FD9D6602_FACCC |    25 |   650 |     2   (0)| 00:00:01 |                                                                       
    |* 15 |     HASH JOIN                   |                          |    25 |  1275 |     5  (20)| 00:00:01 |                                                                       
    |  16 |      TABLE ACCESS BY INDEX ROWID| LOCATIONS                |     1 |    33 |     2   (0)| 00:00:01 |                                                                       
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    |* 17 |       INDEX RANGE SCAN          | LOC_COUNTRY_IX           |     1 |       |     1   (0)| 00:00:01 |                                                                       
    |* 18 |      VIEW                       |                          |    25 |   450 |     2   (0)| 00:00:01 |                                                                       
    |  19 |       TABLE ACCESS FULL         | SYS_TEMP_0FD9D6602_FACCC |    25 |   650 |     2   (0)| 00:00:01 |                                                                       
    Predicate Information (identified by operation id):                                                                                                                                
       6 - access("C"."REGION_ID"="R"."REGION_ID")                                                                                                                                     
           filter("C"."REGION_ID"="R"."REGION_ID")                                                                                                                                     
      10 - access("L"."COUNTRY_ID"="C"."COUNTRY_ID")                                                                                                                                   
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
      12 - access("L"."COUNTRY_ID"='UK')                                                                                                                                               
      13 - filter("C"."COUNTRY_ID"='UK')                                                                                                                                               
      15 - access("L"."COUNTRY_ID"="C"."COUNTRY_ID")                                                                                                                                   
      17 - access("L"."COUNTRY_ID"='NL')                                                                                                                                               
      18 - filter("C"."COUNTRY_ID"='NL')                                                                                                                                               
                                                 And this is the plan for the query WITHOUT the with-clause:
    Plan hash value: 3987129437                                                                                                                                                        
    | Id  | Operation                       | Name            | Rows  | Bytes | Cost (%CPU)| Time     |                                                                                
    |   0 | SELECT STATEMENT                |                 |       |       |     6 (100)|          |                                                                                
    |   1 |  SORT UNIQUE                    |                 |     4 |   212 |     6  (67)| 00:00:01 |                                                                                
    |   2 |   UNION-ALL                     |                 |       |       |            |          |                                                                                
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    |   3 |    NESTED LOOPS                 |                 |     3 |   159 |     2   (0)| 00:00:01 |                                                                                
    |   4 |     NESTED LOOPS                |                 |     1 |    20 |     1   (0)| 00:00:01 |                                                                                
    |*  5 |      INDEX UNIQUE SCAN          | COUNTRY_C_ID_PK |     1 |     6 |     0   (0)|          |                                                                                
    |   6 |      TABLE ACCESS BY INDEX ROWID| REGIONS         |     4 |    56 |     1   (0)| 00:00:01 |                                                                                
    |*  7 |       INDEX UNIQUE SCAN         | REG_ID_PK       |     1 |       |     0   (0)|          |                                                                                
    |   8 |     TABLE ACCESS BY INDEX ROWID | LOCATIONS       |     3 |    99 |     1   (0)| 00:00:01 |                                                                                
    |*  9 |      INDEX RANGE SCAN           | LOC_COUNTRY_IX  |     3 |       |     0   (0)|          |                                                                                
    |  10 |    NESTED LOOPS                 |                 |     1 |    53 |     2   (0)| 00:00:01 |                                                                                
    |  11 |     NESTED LOOPS                |                 |     1 |    20 |     1   (0)| 00:00:01 |                                                                                
    |* 12 |      INDEX UNIQUE SCAN          | COUNTRY_C_ID_PK |     1 |     6 |     0   (0)|          |                                                                                
    |  13 |      TABLE ACCESS BY INDEX ROWID| REGIONS         |     4 |    56 |     1   (0)| 00:00:01 |                                                                                
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
    |* 14 |       INDEX UNIQUE SCAN         | REG_ID_PK       |     1 |       |     0   (0)|          |                                                                                
    |  15 |     TABLE ACCESS BY INDEX ROWID | LOCATIONS       |     1 |    33 |     1   (0)| 00:00:01 |                                                                                
    |* 16 |      INDEX RANGE SCAN           | LOC_COUNTRY_IX  |     1 |       |     0   (0)|          |                                                                                
    Predicate Information (identified by operation id):                                                                                                                                
       5 - access("C"."COUNTRY_ID"='UK')                                                                                                                                               
       7 - access("C"."REGION_ID"="R"."REGION_ID")                                                                                                                                     
       9 - access("L"."COUNTRY_ID"='UK')                                                                                                                                               
    PLAN_TABLE_OUTPUT                                                                                                                                                                  
      12 - access("C"."COUNTRY_ID"='NL')                                                                                                                                               
      14 - access("C"."REGION_ID"="R"."REGION_ID")                                                                                                                                     
      16 - access("L"."COUNTRY_ID"='NL')                                                                                                                                               
                                                                                                                                                                                        As you can see: WITH does not appear to get me any performance enhancement...

  • Get Resource Plan data without making a PSI call

    I've found that retrieving project resource plan data (for all resources on the project team) takes around one minute when calling ReadResourcePlan via the PSI.  We'd like a way to retrieve that data without the overhead of the PSI call.  We've
    tried querying the Reporting database, and have found some differences.  For instance, ReadResourcePlan returns plan data, even if the resource plan is checked out / in a non-published state.  Is there a way to retrieve the same resource plan data
    returned by the PSI without making the ReadResourcePlan call?

    Hi TYRichardson--
    Before diging into it, have you read this excellent
    post from Brian about the resource plan and PSI? Take alos a look to the comments which talk about the check-out.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • With clause in SQL query data model

    Hello!
    isn't it possible to use the with clause in sql query data models?
    for example following query:
    WITH
    a_test as (
    select dummy from dual
    select *
    from a_test
    brings up a "XML Parsing Error: no element found"-error...
    BR Paul

    I tried a slightly different query (see below) and the query worked fine and retrieved data.. I did not get any errors.
    WITH
    a_test as (
    select 'dummy' from dual
    select *
    from a_test
    This works as well.. retrieving the value of the parameter
    WITH
    a_test as (
    select :Test_ID from dual
    select *
    from a_test
    thanks,
    BIPuser

  • I have an Iphone 4 which I just updated with the latest software, which put in it in Recovery Mode. It has the picture of the plug with Itunes, I downloaded it now its saying its in Recovery Mode, how do I save all of my previous data without Restoring?

    I have an IPhone 4 which I just updated with the latest software, which put in it in Recovery Mode. It has the picture of the plug with ITunes, I downloaded it now its saying its in Recovery Mode, how do I save all of my previous data without Restoring?
    I updated the phone before backing it up on iTunes, now the update wanted me to connect the phone with iTunes and it says the phones in recovery mode and it must be restored before its used with iTunes. I go to click restore and it says it will reset it to factory default and I'll lose all my current data. I have all my sons pictures and videos along with this notes. I can't lose all of this data! Please help!

    You have to restore the iPod, no ifs, ands, or buts...
    After iOS is installed you will be asked if you what to set it up as a new iPod or if you want to restore from a backup.
    If you have a good backup you can restore that and you're good to go.
    If you don't have a good backup, then you end up with a "clean" iPod....

  • Adobe Form with XML interface cannot retrieve all data from SAP

    hi all
    I want to use the Adobe forms for the real estate module.
    I had seen that adobe forms can have an interface with XML input and output as parameter.
    In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
    No other INPUT parameter can be added to it.
    When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
    But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
    for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
    the function module checks if the form has a INPUT parameter SENDER.
    And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
    Does anybody know a solution herefore?
    kind regards,
    Anton Pierhagen

    Hi Bhaskar
    It is a long time ago, almost 2 years.
    I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
    The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
    So that was my solution
    Kind regards,
    Anton Pierhagen

  • What can I do simply  to keep all my previous contents, (own pics, videos, etc.) on my previously authorized iPad on PC, but get a new authorisation and a right syncronization, without data loss with a new  iTunes on my new Mac?

    Friends,
    I already had an iPad(1) and its full contents (not only the purchased items, applications from Apple, but my all own pics, videos, songs etc.) is normally syncronized with an authorized PC (Windows) computer.
    Now,  I've bought a new MacBook Air computer, and want to sell my PC. But I don't know how to transfer (or syncronize) all of the contents from my previous iTunes on PC to the new one on the Mac.
    When I connected my iPad to my new MacBook Air, I promted, if I want to change authorization of my iPad to the MacBook.
    But also got a warning, that the new iTunes will delete from my iPad all my previously syncronized items, pics, videos and music, with the previously authorized  iTunes on the previous computer, expect the saved pics from the net.
    What can I do just like that, simply  to keep all my previous contents on my iPad, but have a new authorisation and a right syncronization, without data loss with the new  iTunes on my new Mac?
    Thanks a lot for your answer.
    ([email protected])

    Here are some instructions that I have posted several times that may be helpful to you as they have been to others. You can simply ignore anything that does not apply or that you have already done.
    As Alan stated above - transferring the iTunes library is the best first step. If you can transfer the iTunes library to the Mac, most of this will be unecessary for you to do.
    Very Important ....
    1. Authorize the computer.
    2. Turn off auto sync in iTunes
    3. Transfer purchases
    The text in italics is from the other thread - non italics are my words.
    The following was copied from this thread. This is essentially what you want to accomplish.
    https://discussions.apple.com/message/11527071#11527071
    1) Without connecting your iPad to your new computer, start iTunes. Click on iTunes. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your computer and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your computer, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on iTunes / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.
    Read this thread and the support links as well. There are apps that you can purchase that will allow you to transfer photos from the iPad to your computer. Look at Photo Transfer App in the App store and you can search for others as well.
    https://discussions.apple.com/message/13016026#13016026
    This support site will help you with transferring iTunes music to your new computer.
    http://support.apple.com/kb/HT4527
    One final note - you may want to leave auto sync turned off - but that is totally up to you. I never did use auto sync.

  • Message Mapping Issue with data without namespace

    Hi,
    I have a common xsd imported which has its own target namespace into my SWC namespace. Based on this xsd I have generated a Message Interface and webservice and given the wsdl to third party system for invoking my webservice.
    The problem is I have done the message mapping based on xsd which has namespace but whereas the third party system which is consuming my webservice is sending the xml data without any namespace and because of which my mapping is failing (target structure is not getting generated as expected). I have tested the mapping with namespace and without namespace from IR already. I have explained this below with example.
    I cannot change the xsd as it is a common and even cannot ask the end system to change the data format they are sending as they are sending the same data to some other systems also, which are not complaining.
    How to resolve this issue in XI?
    Actual xml data generated from my imported xsd (with namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Root xmlns:ns0="http://employee/types">
       <ns0:EmployeeDetails>
          <ns0:EmployeeId>12</ns0:EmployeeId>
            <ns0:EmployeeName>XYZ</ns0:EmployeeName>
    </ns0:EmployeeDetails>
    </ns0:Root>
    Actual Data coming from third party system (without namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <Root>
       <EmployeeDetails>
          <EmployeeId>12</EmployeeId>
            <EmployeeName>XYZ</EmployeeName>
    </EmployeeDetails>
    </Root>
    Thanks
    Amit

    Just  wild guess:)
    I am not 100% sure but i guess XSLT mapping does not checks the incoming payload against the sender message type.Within XSLT mapping you can add/remove namespace as you would like,use this XSLT mapping before your actual message mapping in interface mapping.
    I am saying this coz recently i was able to generate XSLT mapping(in altova Map Transform) without even specifying any sender or receiver Message type and it worked just fine.
    Thanx
    Aamir

  • RMAN in active data guard with real time apply ON without a catalog DB

    I would like to know whether I can take RMAN backups (both level 0 & incremental) in active data guard with real time apply ON without a catalog database. version is 11.2.0.3.2. Will it make difference in the control file of standby syncing with primary? Can I use these backups on primary to restore and recover the database(including control file backup)?

    Thank you very much msberg. Could you please answer the below queries as well?
    Should I cancel Real Time Apply before starting RMAN?
    Will it make difference in the control file of standby syncing with primary? Is it possible to use these backups on primary to restore and recover the database(including control file backup)? If possible, how will I do that?

  • I have lost my contact from iphone 5 and not able to retrieve the data, however  it reflects old contacts are reflected with Whats app messages

    i have lost my contact from iphone 5 and not able to retrieve the data, however  it reflects old contacts are reflected with Whats app messages

    WWhat are you syncing your contacts with? A supported application on the computer or cloud service? They should still be there.

  • Possible to hit enter on table cell & retrieve data without selecting line?

    Hi All,
    We're using ECC6.  I  I have a situation where the user wants to be able to hit a cell in a table which will then fire a report and pass the contents of that cell to the report. 
    So far I have been only able to get this working when the row is highlighted, I can easily pick up the values from the lead selection.  But the user does not want to have to highlight a row every time to run the report.  The user just wants to hit return a cell and for the report to be updated with the value in that cell.
    So, I'm just wondering if it is possible to hit enter in any table cell and retrive the data without highlighting the row?
    Many thanks in advance,
    Liz.

    Hi,
    You want complete row data or perticular cell data??
    Basic q's, without selecting a row how can we get data? without selecting means you get complete data on table,
    In that case which data you have to pass to report?
    Or if you dont want to select data means, create one more field of type button. so in thins button action get that row data
    and call report from here itself.
    Cheers,
    Kris.

  • I have a 2GB data plan with my iphone 5c.  If I purchase a new tablet can I use the phone as a personal hotspot for the tablet without any additional costs?

    I have a 2GB data plan with my iphone 5c.  If I purchase a new tablet can I use the phone as a personal hotspot for the tablet without any additional costs

        dianneb, great question and thanks for the help Weth. The good news is if you're on More Everything the mobile hotspot would be apart of your plan just as Weth mentioned. What you just want to keep in mind is that the usage from the tablet while connected to the hotspot would take from your current plan allowance. Hope this helps!
    AdamG_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for