SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to Avoid LOCKS in SQL Server When Job Exection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kond.mohan
Posting Yak Master

India
193 Posts

Posted - 03/09/2013 :  03:41:51  Show Profile  Reply with Quote
hi
We are Pulling the Data from Oracle to Sql server(Staging Area).using SSIS Packages in MSSQL 2008.SSIS PACKGES ARE exectuing throug Schduler packages.ETL Package Execution Avg time is 4 hrs. from last 3 days onwards jobexection is more than 7 hrs.we have followed data loading is this manner
1)drop indexes
2)loading data
3)creating indexes.

few tables having huge volume of data.

we have identified at the time of Jobexecution few process has been blocked.(either data loading or Index creation time)
we need to DO the optimistion on dataloading and create index issues
and how to AVOID THE LOCKS(BLOCKED BY)IN sql server Agent.

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 03/09/2013 :  03:45:13  Show Profile  Reply with Quote
which are processes blocking them? are there multiple data creation/indexing dropping step which overlap?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

kond.mohan
Posting Yak Master

India
193 Posts

Posted - 03/09/2013 :  04:15:28  Show Profile  Reply with Quote
HI,
data loading time and index creation time locking happening.
data loading using ssis packgage we have created ssis packges based on ONCE COMPLETION OF LOADING THE TABLE(completion line) THEN only PRCOCESS Should go to the NEXT container.this is the way of the Exettion of data loaidng .in the case of indexes we have created Stored procedures.each procedure have 3to 4 index.in this case also same once completion of the Stored procedure(Execute Sql task) then only shold to the next Execute sql task.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 03/09/2013 :  04:19:49  Show Profile  Reply with Quote
why not add the index creation as a different step altogether in sql job and remove it from current package?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000