One of my customers recently wanted to rename each of the SQL audit files will the datetime stamp of when it was created. I explained to them the filename already contains a datetime stamp. While it does not look like a typical timestamp, it is based on the Windows Filetime data structure that is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). Nonetheless, they still wanted a traditional datetime stamp in the file name. According to the documentation, the audit file naming convention is this: and if we use this file as an example:...
Continue reading...
Patrick Keisler
SQL Server Expert
Azure Data Platform Specialist
Azure Data Platform Specialist
Comments, tweets, and posts are my own and do not reflect the views of my employer.

Categories
- Audit (4)
- Availability Groups (4)
- Azure (5)
- Certifications (3)
- Columnstore (6)
- Conferences/Training (7)
- Configuration (8)
- Extended Events (1)
- Idera (1)
- Internals (9)
- Managed Service Accounts (6)
- PASS (7)
- Performance (10)
- Personal (6)
- PowerShell (14)
- Security (7)
- SQL Saturday (3)
- Table Partitioning (2)
- Tools/Utilities (8)
- Troubleshooting (2)
- TSQL Code (13)
- TSQL Tuesday (4)
- VMware (2)
Archives
- December 2024 (1)
- November 2024 (1)
- October 2024 (1)
- December 2023 (1)
- November 2023 (1)
- November 2022 (1)
- March 2022 (2)
- February 2022 (2)
- January 2022 (2)
- December 2021 (1)
- December 2020 (1)
- July 2020 (2)
- June 2020 (2)
- May 2020 (1)
- May 2019 (2)
- July 2018 (1)
- January 2018 (1)
- May 2017 (2)
- April 2017 (2)
- September 2016 (1)
- August 2016 (1)
- June 2016 (1)
- May 2016 (1)
- November 2015 (2)
- October 2015 (3)
- July 2015 (2)
- June 2015 (1)
- April 2015 (1)
- March 2015 (1)
- February 2015 (3)
- August 2014 (1)
- July 2014 (2)
- June 2014 (1)
- May 2014 (1)
- April 2014 (2)
- March 2014 (1)
- February 2014 (1)
- December 2013 (2)
- November 2013 (1)
- October 2013 (1)
- September 2013 (2)
- August 2013 (2)
- July 2013 (2)
- June 2013 (1)
- May 2013 (2)
- April 2013 (1)
- March 2013 (3)
- February 2013 (3)
- January 2013 (4)
- December 2012 (4)
- November 2012 (3)
- October 2012 (5)
- September 2012 (2)