Submitted by: Hannes du Preez(ojdupreez1978@gmail.com)

Thursday Sep 27th 2018 by Hannes du Preez

Language: SQL, Expertise: Intermediate - See how to find tables with an XML column.

You can find tables with an XML column in the following way:

SELECT [table] = s.name + N'.' + t.name
  FROM sys.tables AS t
  INNER JOIN sys.schemas AS s
  ON t.[schema_id] = s.[schema_id]
    SELECT 1 FROM sys.columns AS c
      WHERE c.[object_id] = t.[object_id]
      AND c.system_type_id = 241 
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved