Solved

Determine IP of Client Adding Record to SQL Database Table

Posted on 2013-10-29
2
311 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
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

856 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