<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sys.computed_columns on SQL Server Scripts</title><link>https://www.sqlserver70.com/tags/sys.computed_columns/</link><description>Recent content in Sys.computed_columns on SQL Server Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>SQLServer70.com</copyright><lastBuildDate>Fri, 22 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sqlserver70.com/tags/sys.computed_columns/index.xml" rel="self" type="application/rss+xml"/><item><title>SQL Server Find Columns by Data Type Across the Database</title><link>https://www.sqlserver70.com/post/sql-server-find-columns-by-data-type/</link><pubDate>Fri, 22 May 2026 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/sql-server-find-columns-by-data-type/</guid><description>
&lt;p&gt;&amp;quot;Where is every &lt;code&gt;datetime&lt;/code&gt; column?&amp;quot; — &amp;quot;Which tables still use &lt;code&gt;text&lt;/code&gt; instead of &lt;code&gt;varchar(max)&lt;/code&gt;?&amp;quot; — &amp;quot;Are any columns using a deprecated user-defined type?&amp;quot; These are recurring DBA questions during schema audits, deprecation sweeps, and pre-migration assessments. This T-SQL script joins &lt;code&gt;sys.columns&lt;/code&gt; to &lt;code&gt;sys.types&lt;/code&gt;, &lt;code&gt;sys.tables&lt;/code&gt;, and &lt;code&gt;sys.schemas&lt;/code&gt; to produce the canonical answer: every column in the current database with its full type signature.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="8593449130"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;Which columns survived the move from &lt;code&gt;text&lt;/code&gt; to &lt;code&gt;varchar(max)&lt;/code&gt;? Which fields still carry the deprecated &lt;code&gt;Money_T&lt;/code&gt; UDT three releases after it was officially retired? Did a recent merge silently reintroduce &lt;code&gt;datetime&lt;/code&gt; on a column the design review thought it had migrated to &lt;code&gt;datetime2&lt;/code&gt;? A single catalog-view query against &lt;code&gt;sys.columns&lt;/code&gt; and &lt;code&gt;sys.types&lt;/code&gt; answers all three — and every other question of the form &amp;quot;where is every column of type X in this database?&amp;quot; — without an INFORMATION_SCHEMA round trip or a manual table-by-table sweep.&lt;/p&gt;</description></item></channel></rss>