您的位置:首页 > 博客中心 > 数据库 >

Temporary TempDB Tables [AX 2012]

时间:2022-03-10 17:28

Temporary TempDB Tables [AX 2012]

1 out of 4 rated this helpful - Rate this topic

Updated: November 5, 2013

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

In Microsoft Dynamics AX, one type of temporary table is a TempDB table. We call them TempDB tables because their TableType property value is TempDB . This value comes from theTableType::TempDB enum value. The TableType property value can be set at AOT Data Dictionary Tables MyTempDBTable Properties TableType .

All types of temporary tables are automatically dropped by the system when the table variable in X++ goes out of scope. A TempDB table is not dropped when you set its record buffer variable to null .

TempDB tables are a different type of temporary table than InMemory tables. For more information, see Temporary InMemory Tables .

Capabilities of TempDB Tables

gxlsystem.com,布布扣

The following table describes the capabilities of TempDB tables.

Capability

The following table describes the limitations of TempDB tables.

Limitation

当第一个SQL操作从AOS发送到数据库系统时,TempDB表在底层数据库管理系统中被实例化. SQL操作可以是select,insert,update,delete.

下面的表,描述了导致TempDB表被丢弃的情形.

Cause of drop

+

Temporary Tables and the TableType Property

Community Additions


Temporary TempDB Tables [AX 2012],布布扣,bubuko.com

热门排行

今日推荐

热门手游

你可以禁用一个常规持久化的数据库表,通过禁用 configuration key .禁用这个键会导致系统自动创建与数据库表字段和架构相匹配的TempDB类型的临时表. 这个临时表存在于底层SQL Server database ,并通过AOS管理.

自动创建TempDB表的目的是为了让被禁用的AOT对象继续变异和运行. configuration key被禁用后,依然能读写这些TempDB表.

所有表缓冲器变量都继承 xRecord 类的方法. 其中一个方法是 setTmp , 它创建一个与常规表拥有相同架构的InMemory临时表.然而, setTmp 方法不能从TempDB表创建InMemory表. 你可以调用 isTempDb 方法来确定 setTmp 方法是否可用.

X++ Code Example

gxlsystem.com,布布扣

The following X++ code example assumes that a TempDB table which is named MyTempdb has already been defined under AOT Data Dictionary Tables . The MyTempdb table has one column that is the same type as the AccountNum column on the CustTable table. The while select statement in the example contains a JOIN clause that cannot be used with temporary InMemory tables.