get sql server schema to xml?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • suzy

    #1

    get sql server schema to xml?

    Hello,

    How can I get table/column schema of a sql server database? i want to
    convert the entire schema into an xml file.

    thanks in advance.


  • William Ryan

    #2
    Re: get sql server schema to xml?

    You can use a DataReader's GetSchemaTable method
    "suzy" <suzy@spam.co m> wrote in message
    news:ckNyb.372$ nL5.173@news-binary.blueyond er.co.uk...[color=blue]
    > Hello,
    >
    > How can I get table/column schema of a sql server database? i want to
    > convert the entire schema into an xml file.
    >
    > thanks in advance.
    >
    >[/color]


    Comment

    • William Ryan

      #3
      Re: get sql server schema to xml?

      Oops, sorry for not posting the link... you can do it with the Connection
      Object as well... here's a pretty good discussion of it..
      http://msdn.microsoft.com/library/de...omdatabase.asp
      "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
      news:OvHbdpEuDH A.1512@TK2MSFTN GP10.phx.gbl...[color=blue]
      > You can use a DataReader's GetSchemaTable method
      > "suzy" <suzy@spam.co m> wrote in message
      > news:ckNyb.372$ nL5.173@news-binary.blueyond er.co.uk...[color=green]
      > > Hello,
      > >
      > > How can I get table/column schema of a sql server database? i want to
      > > convert the entire schema into an xml file.
      > >
      > > thanks in advance.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • suzy

        #4
        Re: get sql server schema to xml?

        great thanks.... i will give that a try :)

        "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
        news:ugizRsEuDH A.3436@tk2msftn gp13.phx.gbl...[color=blue]
        > Oops, sorry for not posting the link... you can do it with the Connection
        > Object as well... here's a pretty good discussion of it..
        >[/color]
        http://msdn.microsoft.com/library/de...omdatabase.asp[color=blue]
        > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
        > news:OvHbdpEuDH A.1512@TK2MSFTN GP10.phx.gbl...[color=green]
        > > You can use a DataReader's GetSchemaTable method
        > > "suzy" <suzy@spam.co m> wrote in message
        > > news:ckNyb.372$ nL5.173@news-binary.blueyond er.co.uk...[color=darkred]
        > > > Hello,
        > > >
        > > > How can I get table/column schema of a sql server database? i want to
        > > > convert the entire schema into an xml file.
        > > >
        > > > thanks in advance.
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • suzy

          #5
          Re: get sql server schema to xml?

          The example only lists tables. Any idea on how to get additional
          information in one query? (ie: field/column information)?

          "suzy" <suzy@spam.co m> wrote in message
          news:%9Oyb.245$ VQ5.244@news-binary.blueyond er.co.uk...[color=blue]
          > great thanks.... i will give that a try :)
          >
          > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
          > news:ugizRsEuDH A.3436@tk2msftn gp13.phx.gbl...[color=green]
          > > Oops, sorry for not posting the link... you can do it with the[/color][/color]
          Connection[color=blue][color=green]
          > > Object as well... here's a pretty good discussion of it..
          > >[/color]
          >[/color]
          http://msdn.microsoft.com/library/de...omdatabase.asp[color=blue][color=green]
          > > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
          > > news:OvHbdpEuDH A.1512@TK2MSFTN GP10.phx.gbl...[color=darkred]
          > > > You can use a DataReader's GetSchemaTable method
          > > > "suzy" <suzy@spam.co m> wrote in message
          > > > news:ckNyb.372$ nL5.173@news-binary.blueyond er.co.uk...
          > > > > Hello,
          > > > >
          > > > > How can I get table/column schema of a sql server database? i want[/color][/color][/color]
          to[color=blue][color=green][color=darkred]
          > > > > convert the entire schema into an xml file.
          > > > >
          > > > > thanks in advance.
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • William Ryan

            #6
            Re: get sql server schema to xml?

            If you use the DataReader for example, it gives you all three.
            "suzy" <suzy@spam.co m> wrote in message
            news:B3Pyb.644$ VQ5.229@news-binary.blueyond er.co.uk...[color=blue]
            > The example only lists tables. Any idea on how to get additional
            > information in one query? (ie: field/column information)?
            >
            > "suzy" <suzy@spam.co m> wrote in message
            > news:%9Oyb.245$ VQ5.244@news-binary.blueyond er.co.uk...[color=green]
            > > great thanks.... i will give that a try :)
            > >
            > > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
            > > news:ugizRsEuDH A.3436@tk2msftn gp13.phx.gbl...[color=darkred]
            > > > Oops, sorry for not posting the link... you can do it with the[/color][/color]
            > Connection[color=green][color=darkred]
            > > > Object as well... here's a pretty good discussion of it..
            > > >[/color]
            > >[/color]
            >[/color]
            http://msdn.microsoft.com/library/de...omdatabase.asp[color=blue][color=green][color=darkred]
            > > > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
            > > > news:OvHbdpEuDH A.1512@TK2MSFTN GP10.phx.gbl...
            > > > > You can use a DataReader's GetSchemaTable method
            > > > > "suzy" <suzy@spam.co m> wrote in message
            > > > > news:ckNyb.372$ nL5.173@news-binary.blueyond er.co.uk...
            > > > > > Hello,
            > > > > >
            > > > > > How can I get table/column schema of a sql server database? i[/color][/color][/color]
            want[color=blue]
            > to[color=green][color=darkred]
            > > > > > convert the entire schema into an xml file.
            > > > > >
            > > > > > thanks in advance.
            > > > > >
            > > > > >
            > > > >
            > > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...