I have two tables: table 1 is disk based storage and table 2 is in memory storage. I create a DML trigger on table 2 and in that trigger, I insert a record into table 1. Will it be possible?
DML triggers in memory optimized table in SQL Server 2016
501 Views Asked by Balamurugan.Santhanaraj At
1
There are 1 best solutions below
Related Questions in SQL-SERVER-2016
- Select Columns with prefix
- Run SSIS package through Server its working fine but that package I am running on my local system its not working
- Degraded performance when inserting records in batches into a table with columnstore index
- Select substring of multiple rows with similar values
- How delete in specific order
- The 'Other Data Source' button is not activated when creating a SQL Server linked server
- Why can't I combine two SQL Server functions?
- How do I revoke a SELECT permission on one column of a table and still allow the user to do a SELECT * FROM the table?
- Why can't SQL Server Agent be started?
- Properly implement DENSE_RANK() or similar function
- Powershell SQL module errors out when trying to use sqlserver cmdlets
- How do I make one trigger fire but ignore the actions done by another trigger?
- Conditionally execute a query
- Issue with embedded text qualifier
- How do I create log of running balance of debits associated to the credits
Related Questions in IN-MEMORY-TABLES
- How to disconnect recordset obtained from local table in MS Access?
- MS Access crashes after reassigning disconnected ADODB recordset to form
- mariadb galera cluster could support in memory table
- Oracle: detect a NOT INMEMORY column
- SQL Server - Memory quota error during migration to in-memory table
- how to update in-memory table dynamically using dolphindb database
- How to change Delphi FireDAC tFDMemTable field name in design-time
- How to set Foreign Key constraint for 2 tables?
- SQL Server In-Memory table use case with huge data
- Querying into a memory table
- PostgreSQL User Defined table type in memory
- Issue with memory optimized tables transaction commit dependencies
- Query returns wrong data with in-memory table and/or clustered column store index
- Why is TABLE not POPULATING in V$IM_SEGMENTS even after scanning?
- Using Web API TransactionScope and SQL Server in-memory table Issue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can't, it's not possible in the same in-memory transaction using mvcc isolation access a disk-based table through the trigger.
For workaround this you could saving to a stage table memory-based inside the trigger and insert or update to table 1 from stage table using update-join between a memory-based-disk and table-based-disk although it cames with some admin to manage and control but works.
DDL Tiggers still doesn't work even SQL 2017.