Quantcast
Channel: SQL Server DBA
Viewing all articles
Browse latest Browse all 80

Find SQL Server LOB Columns

$
0
0

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


Viewing all articles
Browse latest Browse all 80

Trending Articles