dbTalk Databases Forums  

traces follow up

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss traces follow up in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dimitris
 
Posts: n/a

Default traces follow up - 06-07-2004 , 08:49 PM






Ok, I have created trace files, saved them as sql scripts, that they look
like that:

SELECT "PJID" ,"EMPLID" ,"PROJID" ,"CATEGORYID" ,"QTY" ,"SALESPRICE"
,"TRANSDATE" ,"PMAUNITS" ,"PMARATECODE" FROM "dbo"."PROJJOURNALTRANS" WHERE
("EMPLID" = 'SYLAN' )

go

declare @P1 int

set @P1=-1

declare @P2 int

set @P2=0

declare @P3 int

set @P3=20496

declare @P4 int

set @P4=8193

declare @P5 int

set @P5=0

exec sp_cursorprepexec @P1 output, @P2 output, N'@P1 varchar(1000),@P2
varchar(1000),@P3 varchar(1000),@P4 varchar(1000)', N'SELECT
A.JOURNALNUM,A.LINENUM,A.ACCOUNTTYPE,A.ACCOUNTNUM, A.TXT,A.AMOUNTCURDEBIT,A.C
URRENCYCODE,A.EXCHRATE,A.TAXGROUP,A.QTY,A.DIMENSIO N,A.DIMENSION2_,A.DIMENSIO
N3_,A.DIMENSION4_,A.DIMENSION5_,A.PRICE,A.SETTLEVO UCHER,A.POSTINGPROFILE,A.V
OUCHER,A.AMOUNTCURCREDIT,A.PAYMENTSTATUS,A.CASHDIS CAMOUNT,A.VENDTRANSID,A.CU
STTRANSID,A.REMAINAMOUNT,A.TAXCODE,A.OFFSETACCOUNT ,A.BANKDEPOSITVOUCHER,A.PA
YMREFERENCE,A.BANKDEPOSITNUM,A.PAYMSPEC,A.PAYMMODE ,A.OFFSETACCOUNTTYPE,A.BA



now how I know what to do and where? How can I tell what improvements and
where I can do?

PS I am not a programmer, I am a DBA

thanks



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.