• 0

How to know the user who made the move - SQL Server 12


Question

Hi, as the title say it.

I have a program that use login with every user to access at every module ant this works with SQL Server 12. Until here everything is ok, but when I want to know witch user made de move (Insert, update or delete an record) I don't know how to know it.
Is there a way in SQL Server to do this function? The important to me is know it, even if in the system doesn't show it while in the DB I can consult, thats works for me.

Thx.

Regards.

10 answers to this question

Recommended Posts

  • 1
  On 06/11/2020 at 18:50, tetsu-kun said:

Hi, as the title say it.

I have a program that use login with every user to access at every module ant this works with SQL Server 12. Until here everything is ok, but when I want to know witch user made de move (Insert, update or delete an record) I don't know how to know it.
Is there a way in SQL Server to do this function? The important to me is know it, even if in the system doesn't show it while in the DB I can consult, thats works for me.

Thx.

Regards.

Expand  

Create an Audit table in SQL Server. Every operation, log who did it with timestamp. Record which table,  and previous and current value.

  • 0

You can do it a few ways.

 

If you don't have access to the to software code, an easy way is to create a trigger on the database table so that it makes a record whenever someone does something.

  • 0

The problem is I have a lot of tables that the users modify, and I want to know in some them who makes the moves, for example on my DB  dbo.INVENTORIES I want to know who does the I/O of the material, when and the type of movement (insert, update or delete; depending of the action).

Thanks for your time.

Regards :) 

  • 0
  On 06/11/2020 at 20:26, tetsu-kun said:

The problem is I have a lot of tables that the users modify, and I want to know in some them who makes the moves, for example on my DB  dbo.INVENTORIES I want to know who does the I/O of the material, when and the type of movement (insert, update or delete; depending of the action).

Thanks for your time.

Regards :) 

Expand  

Do you have records of the users in the database?

Do you have access to the software code?

  • 0
  On 06/11/2020 at 20:41, tetsu-kun said:

There are records on every table, but the users only login on the modules with their username and pass, and I don't have access to the SW :/ code for that reason I try to do it on the DB :/

Is this possible? :/ 

Expand  

Ah, thats a tricky one. Easy to audit. Hard to tag who it is.

 

Does the application connect to an API or directly to DB? If it connects directly to DB, do they have individual SQL accounts?

 

 

  • 0

They don't connect directly on SQL they use an SW to log in and enter at individual modules to operate, but that's movements affect the DB.

 

     DB

 SERVER

      ↑

modules

      ↑

     SW

      ↑

   log in

 

That's the example to the access at the SW.

  • 0
  On 06/11/2020 at 21:05, tetsu-kun said:

They don't connect directly on SQL they use an SW to log in and enter at individual modules to operate, but that's movements affect the DB.

 

     DB

 SERVER

      ↑

modules

      ↑

     SW

      ↑

   log in

 

That's the example to the access at the SW.

Expand  

Ok, so the modules are in between.

 

I assume you also don't have access to the module software?

 

I'm not sure you will be able to do it unless the user signed in is being sent in some way to SQL Server, unless you can modify the module software.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • GPT-5 upgrade sparks backlash from ChatGPT Plus users over new usage limits by Pradeep Viswanathan OpenAI yesterday unveiled its highly anticipated GPT-5 model, featuring major advancements in reasoning, coding, and tool-calling capabilities. In a departure from previous launches, the company announced that this cutting-edge model will be accessible to all ChatGPT users, including those on the free tier. Depending on the ChatGPT subscription tier, GPT-5’s intelligence and usage limits will vary. Free-tier users will receive a limited number of high-intelligence responses, while Pro-tier users will have unlimited access. Here are the exact GPT-5 usage limits on ChatGPT: ChatGPT Free tier accounts can send up to 10 messages every 5 hours. After reaching this limit, ChatGPT will automatically use the GPT-5 mini until the limit resets. Free tier users also have access to just one GPT-5 Thinking message per day. ChatGPT Plus plans can send up to 80 messages every 3 hours. After reaching this limit, ChatGPT will switch to GPT-5 mini until the limit resets. ChatGPT Plus or Team users can manually select the GPT-5-Thinking model from the model picker with a usage limit of up to 200 messages per week. ChatGPT Pro plan offers unlimited access to GPT-5 models. If ChatGPT automatically switches from GPT-5 to GPT-5-Thinking, it will not count toward the above limits. While this may sound good, ChatGPT Plus subscribers are unhappy with the change. Previously, they had unlimited access to OpenAI’s o3 and o4-mini Thinking models, but they are now limited to just 200 messages per week. The only workaround for ChatGPT Plus users, for now, is to explicitly instruct the model to think longer through their prompts. It’s unclear how OpenAI will respond to this feedback from its core subscribers. Any future changes to the usage limits for Plus users could play a key role in keeping subscribers satisfied while balancing global demand for the GPT-5 model. Image Credit: Depositphotos.com
    • Guess I'll be saving the APK for future use, screw that data-harvesting copilot crap...
    • Looks like it, I have them working after the update.
    • MEmu Android Emulator 9.2.6 (offline installer) by Razvan Serea MEmu is a FREE Android emulator that brings fun of the Android experience to Microsoft Windows devices. It runs on nearly all Windows devices (PC, notebook, 2-in-1 devices, tablets). Comparing to other Android emulators, MEmu provides the highest performance and greatest compatibility. The richest features: Full Android experience with an elegant desktop Flexible customization (CPU#, memory size, resolution, device model, nav bar location, root mode, etc.) Mapping the keyboard / joystick to screen touch for much better game experience Passing through sensor data (e.g. accelerometer) to Android, so you can play car-racing like games intuitively GPS location simulation File sharing between Windows and Android Fast APK installation by drag and drop One-click Android system creation / clone / deleting, and you can run multiple Android instances simultaneously Using MEmu, you can: Have fun playing Android games on PC Chat more conveniently by using keyboard in Whatsapp, Wechat, etc. Watch live show and TV channels Ten seconds to start Directly open several Android Emulator windows MEmu Android Emulator 9.2.6 changelog: Optimized the emulator GUI to support native Windows 11 style. Optimized APK export speed, automatically export to shared directory, and display export progress. Fixed an issue where APK export could occasionally result in incomplete files on Android 12 instance. Fixed graphical corruption issues in Project Net game. Download: MEmu 9.2.6 Offline Installer | 639.0 MB (Freeware) View: MEmu Home Page | MEmu Support Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Jaclidio hoy earned a badge
      One Month Later
    • Week One Done
      Yawdee earned a badge
      Week One Done
    • Week One Done
      eugwalker earned a badge
      Week One Done
    • First Post
      Ben Gross earned a badge
      First Post
    • One Month Later
      chiptuning earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      658
    2. 2
      +FloatingFatMan
      185
    3. 3
      ATLien_0
      146
    4. 4
      Xenon
      133
    5. 5
      wakjak
      107
  • Tell a friend

    Love Neowin? Tell a friend!