다음을 통해 공유


IsDeleted Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The IsDeleted property indicates whether the referenced object has been deleted from an instance of Microsoft SQL Server.

구문

object
.IsDeleted

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetIsDeleted(LPBOOL pRetVal);

주의

If a client session creates an object using SQL Distributed Management Objects (SQL-DMO), and another client session subsequently deletes the object using another tool, the SQL-DMO application is unaware of the deletion. For example, if a SQL-DMO application creates a Tables collection that contains the CustReport table, and another application subsequently deletes the CustReport table, the CustReport table remains in the SQL-DMO internal cache until the SQL-DMO application refreshes the Tables collection by calling the Refresh method. Until the internal cache is refreshed, if the SQL-DMO application calls the properties or methods of the CustReportTable object, SQL-DMO attempts to access the deleted table.

A SQL-DMO application can use the IsDeleted property to verify the existence of the object without calling the Refresh method, which requires a round trip from the computer running the application to the instance of SQL Server and then refreshes the entire collection of objects.

IsDeleted returns TRUE if the object has been deleted from the server. However, IsDeleted does not clean up the SQL-DMO internal cache. The application must call the Refresh method to perform the cleanup process.

[!참고] IsDeleted can be used with SQL Server 2005, SQL Server 2000, and SQL Server version 7.0.

Applies To:

Database2 Object

Table2 Object

DatabaseRole2 Object

Trigger2 Object

Default2 Object

User2 Object

Login2 Object

UserDefinedDataType2 Object

Rule2 Object

UserDefinedFunction Object

StoredProcedure2 Object

View2 Object

참고 항목

참조

IsObjectDeleted Method

도움말 및 정보

SQL Server 2005 지원 받기