Solved

Determine IP of Client Adding Record to SQL Database Table

Posted on 2013-10-29
2
315 Views
Last Modified: 2013-11-06
I have a Microsoft SQL 2008 Standard Server with a database for a 3rd party application. One of my client computers is repeatedly creating a record in a specific table and I need to know which client computer (by IP preferably) is creating that record. Is it posible and if so how do I track the IP of the computer creating records in that table?
0
Comment
Question by:callworth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:SterlingMcClung
ID: 39609475
My first thought would be to use a trigger on that table, looking for the specific record and log that outputs the required information to a separate table that you can check periodically.
<links removed - GaryC123>

The ability to do this is going to depend on the database that you are using and if there are existing triggers on that table already.  I'm not sure if this is the best solution, but it was the first that came to my mind.
0
 
LVL 9

Accepted Solution

by:
guswebb earned 500 total points
ID: 39613107
Right-click the server name in SSMS and open Activity Monitor. You might just see the offending system (and SQL login being used) in there if it is repeatedly making connections and inserting rows. You can right-click individual processes and view the details of the query being executed to find the query you are looking for. Worth a look!
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question