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


SSIS Job not able to trace in sp_who


SSIS Job not able to trace in sp_who

Author
Message
Gangadhara MS
Gangadhara MS
SSC Veteran
SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)

Group: General Forum Members
Points: 251 Visits: 840
Hi All,

I am running an SQL agent Job which intern run the SSIS package which imports data to one of the database,but when i run the sp_who2 i am unable to view that process SPID.

How do we trace this.
Brandie Tarvin
Brandie Tarvin
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14950 Visits: 9006
Are you running the job and package on the same server as the database? That's the only reason why I can think you might not see the SPID. You may be looking on the wrong server.

Otherwise, you may be looking for the wrong thing. What exactly are you looking for when you search for the SPID? It might behoove you to use a filtered sp_who2 rather than run the whole thing and look through the randomly sorted lines.


DECLARE @Table TABLE(
SPID INT,
Status VARCHAR(MAX),
LOGIN VARCHAR(MAX),
HostName VARCHAR(MAX),
BlkBy VARCHAR(MAX),
DBName VARCHAR(MAX),
Command VARCHAR(MAX),
CPUTime INT,
DiskIO INT,
LastBatch VARCHAR(MAX),
ProgramName VARCHAR(MAX),
SPID_1 INT,
REQUESTID INT
)

INSERT INTO @Table EXEC sp_who2

SELECT * FROM @Table
--WHERE --ProgramName LIKE 'Microsoft%' AND
--LOGIN NOT LIKE '%\%'
ORDER BY LOGIN DESC, HostName;



I use various WHERE conditions to check for ProgramName or Logins (the '%\%' bit excludes Windows logins that have the domain names with them). Anyway, using these conditions makes it so much easier for me to find something specific.

Also, your load may be happening so fast that you can't catch it with sp_who2 simply because the process is done by the time you get your data back.

Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.
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