Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. converting from varbinary(max) to xml

converting from varbinary(max) to xml

Scheduled Pinned Locked Moved Database
databasesql-serversysadminxmlhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amer shammout
    wrote on last edited by
    #1

    I am working on sql server 2008 I have a table with a varbinary(max) filed I want to store a row of this table in ather table in xml filde so when I write a query and set in the end of query (for xml auto) an error was occered what can i do

    L 1 Reply Last reply
    0
    • A amer shammout

      I am working on sql server 2008 I have a table with a varbinary(max) filed I want to store a row of this table in ather table in xml filde so when I write a query and set in the end of query (for xml auto) an error was occered what can i do

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What did the error message say?

      I are troll :)

      A 1 Reply Last reply
      0
      • L Lost User

        What did the error message say?

        I are troll :)

        A Offline
        A Offline
        amer shammout
        wrote on last edited by
        #3

        FOR XML AUTO could not find the table owning the following column 'Logo' to create a URL address for it. Remove the column, or use the BINARY BASE64 mode, or create the URL directly using the 'dbobject/TABLE[@PK1="V1"]/@COLUMN' syntax.

        L 1 Reply Last reply
        0
        • A amer shammout

          FOR XML AUTO could not find the table owning the following column 'Logo' to create a URL address for it. Remove the column, or use the BINARY BASE64 mode, or create the URL directly using the 'dbobject/TABLE[@PK1="V1"]/@COLUMN' syntax.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          According to the syntax mentioned in this[^] blogpost, I'd assume that your statement would work if you add the BINARY BASE64 option like this;

          FOR XML AUTO, BINARY BASE64

          I are troll :)

          A 1 Reply Last reply
          0
          • L Lost User

            According to the syntax mentioned in this[^] blogpost, I'd assume that your statement would work if you add the BINARY BASE64 option like this;

            FOR XML AUTO, BINARY BASE64

            I are troll :)

            A Offline
            A Offline
            amer shammout
            wrote on last edited by
            #5

            thanks

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups