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


Resource intensive processes


Resource intensive processes

Author
Message
DaveDB
DaveDB
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 215
Hello,

I have a SSIS package that pulls files down from an FTP site and loads the files into basic SQL tables. At the moment this package runs everyday at 3:00pm. I have to check the folder to see if a specific file was uploaded to determine when the FTP upload process ends. Currently I have a simple timer script set up that checks the folder every 15 minutes to see if the file has been uploaded.

My question is... How resource intensive is this method? If the file doesn't upload for several hours will this kill performance on my production box? Here is the script that I have in a SSIS scripting task...

WHILE (select count(*) from TABLE where DATE >= GETDATE()) = 0
BEGIN
WAITFOR DELAY '00:15:00'
END;
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15587 Visits: 14396
From a T-SQL perspective WAITFOR DELAY will not actively use any server resources other than the overhead of having it keep an open thread using a little memory for the request and having it effectively do nothing.

From an SSIS perspective, if it issued the T-SQL batch out of a Script Task then the SSIS package will remain running. So again, it won't be actively using CPU or doing I/O, but it will be occupying memory on your server.

PS I am confused though. You say that you check a folder every 15 minutes but then you show a SQL batch. Are we talking about an SSIS Package checking a folder or a T-SQL process checking table?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
DaveDB
DaveDB
SSC-Enthusiastic
SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)SSC-Enthusiastic (169 reputation)

Group: General Forum Members
Points: 169 Visits: 215
T-SQL process checking a table.

Thanks so much for your response!
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