SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


stored procedure pro


stored procedure pro

Author
Message
kumar99ms
kumar99ms
SSC Veteran
SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)SSC Veteran (274 reputation)

Group: General Forum Members
Points: 274 Visits: 550
Hi Everybody,


In my database one big table 19000 rows is there

In this table have so many stored procedures is there

one stored procedure purpose is to inserting rows but that is not working good

how can i find which stored procedures is inserting

i dont have permissions to write new procedure also how can i find out which procedure that one.

Thanks
mayur.parmar
mayur.parmar
SSC-Enthusiastic
SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)SSC-Enthusiastic (160 reputation)

Group: General Forum Members
Points: 160 Visits: 42
if you have access to the application source code which is using this database, then you can debug the application and find out when the records are inserted.

You could also use profiler to see which stored procedures are being called in the application process.

It would be really great if you could throw some more light on your requirement.
Smile
Bruce W Cassidy
Bruce W Cassidy
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3121 Visits: 1033
SQL Profiler will capture exactly what is going on, and you can limit it down to just capturing what is happening with that table. It does take a little while to learn how to use it.

Without more details, I can't suggest much more.

Vladan
Vladan
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5412 Visits: 761
You could try this:

SELECT *
FROM sysobjects so
JOIN syscomments sc ON sc.[id]=so.[id]
WHERE so.type = 'P'
and sc.text like '%INSERT INTO yourtable%'

It isn't 100% reliable (you can miss some procedure because of split into two rows, or because dynamic SQL is used), but it could help you to locate the procedure.
Other than that, Profiler is the best way to go, because it will monitor anything... and there is always a possibility that some rows are not inserted by the procedure but in some other way - and that's probably what you need to know.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search