Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6542497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:14:06+00:00 2026-05-25T11:14:06+00:00

I was working with one product where almost every table had those columns. As

  • 0

I was working with one product where almost every table had those columns. As developers we constantly had to join to Users table to get Id of who created record and it’s just a mess in a code.

I’m designing new product and thinking about this again. Does it have to be like this? Obviously, it is good to know who created record and when. But having 300+ tables reference same User table doesn’t seem to be very good..

How do you handle things like this? Should I create CreatedBy column only on major entities where it’s most likely needed on UI and than deal with joining? Or should I go and put it everywhere? Or maybe have another “Audit” table where I store all this and look it up only on demand(not every time entity displayed on UI)

I’m just worrying about performance aspect where every UI query will hit User table..

EDIT: This is going to be SQL Server 2008 R2 database

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:14:07+00:00Added an answer on May 25, 2026 at 11:14 am

    The problem with that approach is that you only know who created the row and who changed the row last. What if the last person to update the row was correcting the previous updater’s mistake?

    If you’re interested in doing full auditing for compliance or accountability reasons, you should probably look into SQL Server Audit. You can dictate which tables you’re auditing, can change those on the fly without having to mess with your schema, and you can write queries against this data specifically instead of mixing the auditing logic with your normal application query logic (never mind widening every row of the table itself). This will also allow you to audit SELECT queries, which other potential solutions (triggers, CDC, Change Tracking – all of which are either more work or not complete for true auditing purposes) won’t let you do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work with a mid-sized team of developers all working on one product. Developers
My team is working on a conversion project to convert one product (but with
I'm working on one of those projects where there are a million better ways
I'm trying to create a drop down button and its almost working except one
One of my developers working on a trigger-based logging facility in SQL Server 2008
I'm working with one legacy application written in VB5, and I need to give
I am working on one real estate website which is Using RETS service to
Right now I am working on one Real Estate Website, In that website I
I'm a beginner with SQL and am working on one of my first databases.
I'd like to understand how it is possible: Until I was working with one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.