cruzy
cruzy

Reputation: 11

What is 'type' in systypes?

In sys.systypes ... what exactly is 'type'?

What exactly does .... bigint > int > varchar ... order mean when I execute

select * from sys.systypes order by type desc

Upvotes: 0

Views: 804

Answers (1)

Remus Rusanu
Remus Rusanu

Reputation: 294297

Don't use sys.systypes. Use sys.types instead.

Catalog views like sys.sys% are for backward compatibility and there is always a newer, better explained catalog view. In this case, sys.types no longer exposes the internal physical storage type (the type) column, since that is an internal, undocumented, type id.

Upvotes: 3

Related Questions