Aracılığıyla paylaş


sys.syscolumns (Transact-SQL)

Her tablo veya görünümü her sütun için bir satır, veritabanında saklı yordamdaki her parametre için bir satır döndürür.

Important noteImportant Note:

This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping SQL Server 2000 System Tables to SQL Server 2005 System Views. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Sütun adı

Veri türü

Açıklama

adı

sysname

Sütun veya yordamı parametrenin adı.

Kimliği

int

Bu tabloya KIMLIĞI nesne sütun ait veya bu parametreyi ilişkili olduğu saklı yordam KODU.

xtype

tinyint

Arasında fiziksel depolama alanı alanı alanı türü sys.Types.

typestat

tinyint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

xusertype

smallint

Kullanıcı tanımlı genişletilmiş veri tipinin TEŞHIS koduTaşıyor veya veri türlerini sayısını 32.767 aşarsa, NULL döndürüyor.Daha fazla bilgi için bkz:SQL Server Sistem kataloğu sorgulanıyor..

uzunluğu

smallint

Alınan en fazla fiziksel depolama alanı alanı uzunluğu sys. types.

xprec

tinyint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

xscale

tinyint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

colid

smallint

Sütun veya parametre kimliği.

xoffset

smallint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

bitpos

tinyint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

rezerve

tinyint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

colstat

smallint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

cdefault

int

Bu sütun için varsayılan KODU.

etki alanı

int

Bu sütun için CHECK kısıtlaması veya kural KIMLIĞI.

number

smallint

Yordamı gruplandırıldığında subprocedure numarası.

0 Nonprocedure girdileri =

colorder

smallint

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

autoval

varbinary(8000)

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

Mahsup hesabı

smallint

Bu satır içine mahsup sütun görüntülenir.

collationid

int

Sütun harmanlama TEŞHIS koduNoncharacter tabanlı sütunlar için NULL.

Durum

tinyint

Sütun ya da parametrenin bir özelliğini açıklamak için kullanılan bir bit eşlem:

0x08 sütun = null değerlere izin verir.

ANSI doldurma 0x10 = ne zaman, efekt edildi varchar veya varbinary sütunları eklenmedi. Izleyen boşlukları için korunur varchar ve ardarda sıfırları için korunur varbinary sütunlar.

0x40 parametre = OUTPUT parametresidir.

sütun 0x80 = kimlik sütunu olduğundan.

türü

tinyint

Arasında fiziksel depolama alanı alanı alanı türü sys. types.

UserType

smallint

Kullanıcı tanımlı veri tipinden TEŞHIS kodu sys.types. Taşıyor veya veri türlerini sayısını 32.767 aşarsa, NULL döndürüyor.Daha fazla bilgi için bkz:SQL Server Sistem kataloğu sorgulanıyor..

printfmt

varchar(255)

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

prec

smallint

Bu sütun için duyarlık düzey.

-1 = xml veya büyük bir değer türü.

ölçek

int

Bu sütun için Ölçek.

NULL veri = sayısal türüdür.

iscomputed

int

Sütunun hesaplanmış olup olmadığını gösteren bayrak:

0 Noncomputed =

1 Computed =

isoutparam

int

Yordam parametresi bir çıktı parametresini mi olduğunu gösterir:

1 = True

0 = False

IsNullable

int

Gösterir olup olmadığını sütun null değerlere izin verir:

1 = True

0 = False

harmanlama

sysname

Sütun harmanlama adı.NULL değilse karakter tabanlı bir sütun.