久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何跟蹤在 SQL Server 中自動創(chuàng)建/更新行的時間

How to track when a row was created/updated automatically in SQL Server?(如何跟蹤在 SQL Server 中自動創(chuàng)建/更新行的時間?)
本文介紹了如何跟蹤在 SQL Server 中自動創(chuàng)建/更新行的時間?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

有沒有辦法自動告訴 SQL Server 所有表都應(yīng)該有一個用于插入和更新的時間戳?

這樣做可能需要大量重復(fù)性工作?

或者有其他/更有效的方法來處理事務(wù)日志嗎?

解決方案

看看AutoAudit>

這會將列添加到表中并創(chuàng)建 DML 觸發(fā)器來管理這些列以及維護(hù)審計跟蹤表

我發(fā)現(xiàn)它非常有用

當(dāng)然可以使用 DDL 觸發(fā)器來嘗試強制執(zhí)行表設(shè)計問題.還可以自動檢查元數(shù)據(jù)的設(shè)計氣味

Is there a way to automatically tell SQL Server that all tables should have a timestamp for insert and update?

That's probably a lot of repetitive work to do this?

Or is there another/more efficient way to do this with the transaction log?

解決方案

Have a look at AutoAudit

This will add columns to a table and create DML triggers to manage those columns as well as maintain the audit trail table

I've found it to be very useful

It's certainly possible to use DDL triggers to attempt to enforce table design issues. It's also possible to automate checking the metadata for design smells

這篇關(guān)于如何跟蹤在 SQL Server 中自動創(chuàng)建/更新行的時間?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標(biāo)記轉(zhuǎn)換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創(chuàng)建視圖?)
Create calculated value based on calculated value inside previous row(根據(jù)前一行內(nèi)的計算值創(chuàng)建計算值)
How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對?) - IT屋-程序員軟件開發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉(zhuǎn)換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: av av在线 | 亚洲精品欧美 | 日本免费一区二区三区四区 | 国产成人精品一区二区三区 | 成人在线观看欧美 | 国产精品日韩欧美一区二区 | 九九在线精品视频 | 亚洲国产第一页 | 在线国产一区二区 | 欧美日韩在线观看视频网站 | 黄色网络在线观看 | 国产亚洲网站 | 九九九视频精品 | 91国语清晰打电话对白 | xxx视频| 午夜精品一区二区三区在线视频 | 久久久国产精品 | 91一区二区 | 成人一区二区三区 | 69av片| 97中文视频 | 欧美美女被c | 国产一区二区三区精品久久久 | 欧美成人a∨高清免费观看 91伊人 | 国产精品久久久久久52avav | 一本一道久久a久久精品蜜桃 | 国产这里只有精品 | 国产美女在线精品免费 | 亚洲乱码一区二区三区在线观看 | 久久久久久久电影 | 精品一区二区三区在线视频 | 欧美亚洲日本 | 欧美精品一区二区三区在线播放 | 日本黄色高清视频 | 国产成人精品999在线观看 | 男女视频在线观看免费 | 中文字幕91av | 97免费在线观看视频 | 亚洲二区视频 | 亚洲一区二区精品视频 | 婷婷久久五月 |