Quantcast
Channel: SQLServerCentral » SQL Server 7,2000 » Administration » Latest topics
Viewing all articles
Browse latest Browse all 482

SQL Profiler questions

$
0
0
I am new to sql profiler, below is the output of a sql profiler trace and I have questions listed for each event captured. Looking for clarity. Thanks in advanceDean-OWhen this one executes, does it pass the value of @p1 to the next RPC? If not, what does it do with it?Event Class = RPC: CompletedTextData = declare @p1 intset @p1=54exec sp_prepexec @p1 output,NULL,N'SELECT in_update FROM ngn_ids WHERE id_name = ''Histories_MedSurg'' AND id_value = ''557D78F4-F830-47C6-BE87-23F567F2FC3C'''select @p1What does it do with @p1, @p3, @p4?Event Class = RPC: CompletedTextData = declare @p1 intset @p1=56declare @p3 intset @p3=0declare @p4 varchar(max)set @p4='ng_update_person: (Success), Person "Deano TestRochester" {557D78F4-F830-47C6-BE87-23F567F2FC3C} Added.'exec sp_prepexecrpc @p1 output,N'ng_update_person',@po_result_code=@p3 output,@po_result_message=@p4 output,@pi_person_id='557D78F4-F830-47C6-BE87-23F567F2FC3C',@pi_user_id=154select @p1, @p3, @p4What do these last three do? They run select statements, but what for? What do they do with the data they select?Event Class = SQL: BatchCompletedTextData = SELECT pe.enterprise_id, pe.practice_id, pe.person_id, pe.other_id_number, pe.first_name, pe.last_name, pe.middle_name, pa.person_id ,pa.med_rec_nbr, pe.date_of_birth, pe.sex, pe.nickname FROM { oj person pe LEFT OUTER JOIN patient pa ON pe.person_id = pa.person_id AND pa.practice_id = '0001' } WHERE pe.person_id = '557D78F4-F830-47C6-BE87-23F567F2FC3C'---------------------------------------------------------------------------------------Event Class = SQL: BatchCompletedTextData = INSERT INTO ngn_ids( id_name, id_value, in_update ) VALUES ( 'Histories_MedSurg', '557D78F4-F830-47C6-BE87-23F567F2FC3C', 1 )---------------------------------------------------------------------------------------Event Class = SQL: BatchCompletedTextData = DELETE FROM ngn_ids WHERE id_name = 'Histories_MedSurg' AND id_value = '557D78F4-F830-47C6-BE87-23F567F2FC3C'Why does it show Trace Start here?Shouldn't this be at the start of the trace?Event Class = Trace Start---------------------------------------------------------------------------------------Event Class = Trace Stop

Viewing all articles
Browse latest Browse all 482

Trending Articles