home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 18,567 of 19,505   
   Erland Sommarskog to Tony   
   Re: How to add xml to a column in a Data   
   08 Feb 12 21:09:11   
   
   From: esquel@sommarskog.se   
      
   Tony (johansson.andersson@telia.com) writes:   
   > I have defined a table like this. It's just for learning.   
   > Create table MyTable (MyIntColumn int Primary KEY, MyXmlColumn xml)   
   >   
   > The table is created fine but it's not possible to add any xml to the   
   > MyXmlColumn   
   > it's like the column is read only ?   
      
   This works for me:   
      
   Create table MyTable (MyIntColumn int Primary KEY, MyXmlColumn xml)   
   insert MyTable(MyIntColumn, MyXmlColumn)   
     VALUES(4711, 'Vem fan är det?')   
      
      
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Links for SQL Server Books Online:   
   SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx   
   SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca