How to use type_name function to get the list of datatypes used by each column in SQL Server 2022

Channel:
Subscribers:
5,740
Published on ● Video Link: https://www.youtube.com/watch?v=MOqG8BHunUk



Category:
Tutorial
Duration: 3:17
31 views
0


In this video we are going to see how to use type_name function in SQL Server 2022.
Examples:


SELECT TYPE_NAME(36) AS Type36, TYPE_NAME(62) AS Type62;
GO


SELECT o.name AS obj_name, c.name AS col_name,
TYPE_NAME(c.user_type_id) AS type_name
FROM sys.objects AS o
JOIN sys.columns AS c ON o.object_id = c.object_id
WHERE o.name = 'table_name'
ORDER BY col_name;
GO




Other Videos By java frm


2022-12-28How to Star important Files in Rocky Linux 8
2022-12-28How to switch between workspaces in Oracle Linux 8
2022-12-28How to switch between workspaces in RHEL 8
2022-12-28How to switch between workspaces in Rocky Linux 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on Oracle Linux 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on RHEL 8
2022-12-28How to switch between the GUI and Text mode (Command Line mode) on Rocky Linux 8
2022-12-28How to use templates folder in Oracle Linux 8
2022-12-28How to use templates folder in RHEL 8
2022-12-28How to use templates folder in Rocky Linux 8
2022-12-27How to use type_name function to get the list of datatypes used by each column in SQL Server 2022
2022-12-27How to get list of all datatypes available in SQL Server 2022
2022-12-27How to get list of all columns in database tables using T-SQL in SQL Server 2022
2022-12-27How to get list of all tables in database using T-SQL in SQL Server 2022
2022-12-27How to view dependencies of database objects using SQL Server Management Studio in SQL Server 2022
2022-12-27How to get database objects dependencies using sp_depends (T-SQL) in SQL Server 2022
2022-12-27How to view database size using SQL Server Management Studio in SQL Server 2022
2022-12-27How to get database size using T-SQL in SQL Server 2022
2022-12-27How to uninstall SQL Server 2022 Express Edition and all its components from Windows 11
2022-12-27Microsoft SQL Server 2022 Developer Edition Installation on Windows 11 and connect from SSMS, sqlcmd
2022-12-27Microsoft SQL Server 2022 Express Edition Installation on Windows 11 and connect from SSMS, sqlcmd



Tags:
type_name function in sql server 2022
how to get data types of each column in table using t-sql
sql query to get datatype of each column
sql server 2022 tutorial
sql server 2022 videos
sql server 2022 administration
sql in sql server 2022
mssql tutorials
sql tutorial