27 March,2023 by Tom Collins
Question: Do you have a SQL Script to locate SQL Server LOB columns? I need to find them as I'm organizing a SQL Server conversions and need to identify the SQL Server LOB columns for special attention
Answer: Use this SQL Script as a starting point to identify the LOB columns in your SQL Server tables.
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE IN ('NTEXT','IMAGE' ,'XML', 'VARBINARY','TEXT' ) OR (data_type IN ('NVARCHAR','VARCHAR') and character_maximum_length = -1)
Find other useful details in SQL Server
List Foreign Keys referencing tables in SQL Server
What are the triggers in SQL Server
How to find all identity columns in SQL Server
How to find default values of all SQL Server columns
How to find computed columns on a SQL Server table
How to find SQL Filtered Indexes
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |