Solved

Determine IP of Client Adding Record to SQL Database Table

Posted on 2013-10-29
2
308 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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now