truncate table

Description

Removes all rows from a table.

Syntax

truncate table [[database.]owner.]table_name

Usage


Server class ASEnterprise

Component Integration Services forwards the truncate table command to servers of class ASEnterprise.


Server class ASAnywhere

Component Integration Services forwards the truncate table command to servers of class ASAnywhere.


Server class ASIQ

Component Integration Services forwards the truncate table command to servers of class ASIQ.


Server class direct_connect and sds

If the remote server has requested DB2 syntax, the following statement is forwarded:

delete from [owner.]table_name

Otherwise, Transact-SQL syntax is sent:

truncate table [[database.]owner.]table_name

Server class db2

The following syntax is forwarded to the remote server:

delete from [owner.]table_name 

See also

truncate table in the Reference Manual