SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to find the source for table data insert.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vikky
Yak Posting Veteran

India
54 Posts

Posted - 06/25/2012 :  05:52:46  Show Profile  Reply with Quote
Hi,

Please help on this.

I have one absentees table. From some where data getting inserted into absentees table. I am unable to find the source for that data insert.

Is there any way to get from which source data inserting.

1.Data inserted daily morning 6'o clock but there is no jobs are scheduled.
2. coding Developers said there is no services available to insert data into table.

Is there any triggers to find the object name?

Please help.

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3328 Posts

Posted - 06/25/2012 :  06:07:07  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Try the profiler - or yoou could use a trigger to the table to log what's happening.
You will only get what information the source exposes though.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

vikky
Yak Posting Veteran

India
54 Posts

Posted - 06/25/2012 :  06:15:32  Show Profile  Reply with Quote
Tank you for your fast replay.

But I am unaware to find the trigger log information.
If i create the DML Trigger on absent table how to find the source for data either SP/Service/Job.

Note : All recods inserted into Absentees table with column createdby with -1.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000