Поделиться через


Метод Check.Script

Generates a Transact-SQL script that can be used to re-create the check constraint.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Function Script As StringCollection
'Применение
Dim instance As Check 
Dim returnValue As StringCollection 

returnValue = instance.Script()
public StringCollection Script()
public:
virtual StringCollection^ Script() sealed
abstract Script : unit -> StringCollection  
override Script : unit -> StringCollection
public final function Script() : StringCollection

Возвращаемое значение

Тип: System.Collections.Specialized.StringCollection
A StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the check constraint.

Реализует

IScriptable.Script()

Замечания

ПримечаниеПримечание

For check constraints based partly on the UserDefinedTableType object this method is not supported and generates an exception.

Примеры

Создание скриптов

См. также

Справочник

Check Класс

Перегрузка Script

Пространство имен Microsoft.SqlServer.Management.Smo

Другие ресурсы

Работа с объектами базы данных

Ограничения CHECK

Инструкция CREATE TABLE (Transact-SQL)