Can you generate a Schem Collection from an SQL Query

Is there an Option that allows you to generate and XML Schema Collection in a Select Statement that will be loaded either to a table or an application.
An example
SELECT Column1, Column2, Column3
FROM table
FOR XML PATH('');
An easy way to generate a template or a start without having to type from scratch?
Antonio

Hi Antonio,
The FOR XML clause
can generate the XML schema, you can reference the optional XMLSCHEMA.
XMLSCHEMA [ ('TargetNameSpaceURI') ] 
Returns inline XSD schema. You can optionally specify a target namespace URI when you specify this directive, which returns the specified namespace in the schema. For more information, see
Generate an Inline XSD Schema.
If you have any question, feel free to let me know.
Best regards,
Eric Zhang
TechNet Community Support

Similar Messages

  • Can you generate XML schema from XMLDB?

    I have not used XMLDB and don´t read the entire doc about the product(sorry for that).
    I got the following question, is it possible to generate a XML schema from relational data through XMLDB? Or is this best done via a third party software like XMLSpy or alike?

    3rd Party Software...
    We can generate a schema for an object Hierarchy but our considered opinion is that there is no sensible way to generate an XML Schema representation of a purely relational data structure. It requires a tool which allows you to make decisions on how to organize the heirarchy.

  • How can you generate Multiple random numbers from 1 to 49?

    I am very new at programming with the iPhone SDK and I need some help with a project I am working on. What I want to do is set up a window with 6 labels and 1 button. When the user clicks the button, the program will populate 6 randomized numbers each ranging from 1 to 49, and then place each of 6 numbers in a label. But each time the program ends and starts again the numbers cannot be the same, and also when the user clicks the button, no label can have the same number twice, so for example. If label 1 had the number 10, the other 5 labels cannot have that number until the button is clicked again. I know how to set up the interface, I just need the code. I would so greatly appreciate someone's help in this matter. I have been trying to do this for days and I cannot figure it out. Possibly someone who knows tons about Objective C programming can help me!
    Thank-you so very much!!

    I see that you're writing a lottery number generator. Perhaps the easiest way to do it is to emulate a real lottery: fill an array (NSMutableArray, probably) with the numbers between 1 and 49, pick one at random, remove that number from the array, and repeat. (You can think of the numbers as being the balls and the array as being the machine that pops them out.)
    One simple way to get the random indices needed is to extract six random bytes from Randomization Services using SecRandomCopyBytes, then loop over them, using the modulo operator (%) to select an index within the size of the array.
    And no, I'm not going to write your code for you. If I was going to do that, I could package and sell the app myself.

  • Can you generate separate audio tracks from a Multi-Output Instrument?

    Is there a way to use the "export all tracks as audio files" function and have the multi-output assignments generate separate audio tracks? There doesn't appear to be a way to do this.
    Ideas?

    I think you'll need to bounce them out, or record them via busses...

  • Can you generate PDF file from LabVIEW?

    Can you generate a PDF file from LabVIEW?

    Hi there,
    I just read this post in passing.
    Heres a fairly detailed forum post on the matter - seems to be a few work arounds, but basically no you can't with just the normal labview.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=259103&query.id=65866#M259103
    Thanks
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Problem with XML import MDM 7.1 - Can't generate Xml Schema

    Hi All,
    When I try to open an XML file using Import manager, I'm getting some errors, as detailed below. I mention that I'm using MDM 7.1.
    The first error I received was the following:
    "Can't open C:/Program files/SAP MDM 7.1/Import Manager/XSD.exe". I copied the file xsd.exe in the Import Manager folder, as suggest here:
    Re: Import Manager Error.
    Afterwards, I received a new error:
    "Can't generate Xml Schema for: C:/Program files/SAP MDM 7.1/Import Manager/filename.xml"
    If anyone has faced the same problem - and solved it -, could you please help me find the reason for this behaviour?
    Regards,
    Laura

    Hi Laura,
    The error message "Can't generate Xml Schema"  might be related to DTD. the XML file has a directive for loading DTD.
    MDM doesnot support DTDs.
    Remove the DTD line and make sure there is only one root element in the XML file and try again.
    Hope this helps,
    Bes t Regards,
    Silpa Chillakuru

  • Can you make a Keyword Collection for entire event library?

    Hello all,
    So you make an event, and you can make Keyword Collections for that particular event, such as "WS" or "Person 1" or "Indoors"... But...
    What if those keywords apply to other events?
    I am making video content for a particular company. I shoot stuff one day import as an event. The only content that I produce is for this company, so you can imagine there are going to be similar themes across mutable events...
    As you know this is how it is organized >
    DRIVE
    >2012
    >Event
          >Keyword Collection
    This is how I want to get organized>
    DRIVE
    Master Keyword Collection
    >2012
    >Event
         >Keyword Collection
    > Here is an example of how I think It should be
    DRIVE
    "All Interior Shots"
    >2012
      > Event
         >Interior Shots
    So can you make a Keyword Collection for entire event library?
    Can some one please explain if is this is possible? If not please update!

    Andy,
    Yes you can but that feature only works if you are searching a single event (Pretty Cool/Useful), Creating a smart collection based on what you tick off in the dialogue box... You will get an error message if Searching the drive itself:
    LOL
    I did some playing around...
    I created a new event
    Then I ran a search, with Keywords ticked off, Ticking off mutable Keyword Collections.
    Then dragged the results into my new event.
    This in effect created "saved search results" but Final Cut started copying clips to that event folder that was created on my external HD. I was hoping that It would generate alias files...
    I also...
    Created a new project
    Ran the Search with Keywords
    Dragged all clips into the project..
    This also in effect created  "saved search results" but not really what I was hoping :/

  • Can you get userid and username from OID through sqlplus?

    Anyone know where the user information stored in OID, I mean which table and schema. Thanks!

    Yes you could, but the query would be difficult. LDAP which has a tree-like structure is stored in relational tables. So, in order to get the data you will need to poke into tables in the ODS schema of the metadata repository.
    Have a look at ods.ct_dn and ods.ds_attrstore.
    But take my advice and stick to ldap commands. You can also use the dbms_ldap package from pl/sql.
    cu
    Andreas

  • HT3702 How can you remove a credit card from your account?

    How can you remove a credit card from itunes account?

    See if this support document answers your question. Why can’t I select None when I edit my Apple ID payment information? - Apple Support

  • Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Turn Settings > General > Accessibility > Zoom to ON.

  • HT1364 can you move an itunes library from pc to mac?

    Hi everyone,
    The days of my laptop are nearing the end and I'm strongly leaning towards purchasing a macbook. Can you transfer your media library from pc to mac?
    Can you export a copy your library onto an external drive as I don't know how much longer this laptop will last?
    Thanks for the help

    Sorry, I obviously wasn't clear. If you replicate the library from Computer 1 to Computer 2 by copying it, then all will be well. I routinely sync my iPhone and iPad both at home and at work using a single library that I migrate between the two locations via an external drive which is kept up do date using SyncToy.
    Backup the iPod touch on Computer 1.
    Copy the entire iTunes folder from Computer 1 to Computer 2, replacing any existing iTunes folder on Computer 2.
    Check that content is accessible in the migrated library. (Won't be a problem for a standard iTunes library where all the content is inside the iTunes Media folder which in turn is inside your iTunes folder).
    Connect iPod touch to Computer 2.
    Sync.
    In the unlikely event that something goes wrong (it won't) then you can connect the device back to Computer 1 to restore it.
    Note device backups are not stored within the iTunes library and stay on the machine on which they were created. It is theorectically possible to migrate them but there isn't really any point. Once you have synced the iPod with the copy of the library on Computer 2 then Computer 2 will make its own backup of the device.
    tt2

  • Can you get your money back from itunes

    Can you get your money back from itunes

    if you purchase a itunes gift card you will not be able get your money back. unless if it has never been used, such as enetering the bar code then you can probably take it in to the original store where you bought it from with the receipt. 

  • How can you pull in pdf's from iBooks and bring them into the Box app?

    How can you pull in pdf's from iBooks and bring them into the Box app?

    That sounds great, but I'm lost.
    I followed these steps:
    1) Open your PDF (in Adobe Acrobat Pro)
    2) Chose print
    The print/printer options pop-up will show.
    3) In the printer section, do not use your normal printer, a printer named Adobe PDF should be an option. Chose it.
    4) Under the "Page handling" section, change the Page Scaling drop-down menu to "Multiple pages per sheet".
    It works fine, but it looses all of the font information and the search no longer works. How can you do it and save the font info, so the search tool continues to operate.
    Am I missing anything?

  • Can you make an animated gif from edge animate?

    Can you make an animated gif from edge animate?

    not natively. edge exports html and javascript files, not video files, or frames.
    however, you could use a third-party program that has a video screenshot function and make one that way.

  • Can you please record a video from a web cam with inital setting

    Can you please record a video from a web cam that has the
    following specs
    fps: 20
    bitrate: 1000
    Size: 500*400
    can we configure that in code or is it a webcam specs?

    QuickTime Player Pro can't record the screen.
    QuickTime X can record the screen (but only all of it and not just a window). It's a part of Snow Leopard.

Maybe you are looking for