Follow sqlserver-dba.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

SQLServer-DBA.com Links

Dba_db2_button

dba-ninja.com

SQL Server DBA Jobs

Find SQL Server LOB Columns

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


Author: Tom Collins (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

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.

Working...

Post a comment on Find SQL Server LOB Columns


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer