sp_droptype (języka Transact-SQL)
Usuwa alias typ danych z systypes.
sp_droptype [ @typename = ] 'type'
Argumenty
- [ @typename=] 'type'
Is the name of an alias data type that you own.type is sysname, with no default.
Zwraca typ kodu
0 (sukces) lub 1 (brak)
Zestawy wyników
None
Remarks
The type alias data type cannot be dropped if tables or other database objects reference it.
Uwaga
Nie można go usunąć typem danych alias, jeśli typ danych alias jest używany w definicji tabela lub reguły lub domyślnym jest związane.
Uprawnienia
Członkostwo w grupie wymaga db_owner ustala rola bazy danych lub db_ddladmin stała rola bazy danych.
Przykłady
W poniższym przykładzie spadnie alias typ danych birthday.
Uwaga
Ten typ danych alias musi już istnieć lub w tym przykładzie zwraca komunikat o błędzie.
USE master;
GO
EXEC sp_droptype 'birthday';
GO