Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6553027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:31:54+00:00 2026-05-25T12:31:54+00:00

I have SSIS package which executes several minutes. It copies data to my PROD

  • 0

I have SSIS package which executes several minutes. It copies data to my PROD database. Package is launched from Sql Server Job. I’d like to take my web site offline during executing of the package. How do I can turn off my web site before execution and then turn on it back automatically?

I use Sql Server 2008 and IIS6.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:31:55+00:00Added an answer on May 25, 2026 at 12:31 pm

    Here is a possible option:

    Within the SSIS package:

    • Create a batch file named StopWebsite.bat with the following command:

      iisreset /stop computername

    • Create another batch file named StartWebsite.bat with the following command:

      iisreset /start computername

    • In the SSIS package, place an Execute Process Task in the Control Flow tab. Call the first batch file StopWebsite.bat from the Execute Process task. This will stop the Internet Information Services (IIS).

    • Place all your other tasks after the first Execute Process Task.

    • After all your other tasks in the Control Flow tab, place another Execute Process Task. Call the second batch file StartWebsite.bat. This will start the IIS.

    • Note that you need to place the batch files in a location where the SSIS package can access them from the production environment.

    Within the SQL Server job:

    • If you don’t want to do this in the SSIS package. You need to have three steps in your SQL Server Job.

    • Step 1 would execute the command iisreset /stop computername as job of type Operating System (CmdExec)

    • Step 2 would call the SSIS package.

    • Step 3 would execute the command iisreset /start computername as job of type Operating System (CmdExec)

    • If you run into permissions issue, make sure that the account (usually it is SQL Server Agent Account) in which the step is being executed has permissions to restart IIS on the remote server. You could also try to use a proxy account that would make use of a domain account credentials, in the following link screenshots 8 – 14 explains how to create a proxy account on job type SSIS Package Execution. You might need to do something similar on the Operating System (CmdExec) job type. How do I create a step in my SQL Server Agent Job which will run my SSIS package?

    Replace computername with your actual computer name or IP address of the machine where your website is hosted.

    I would say option #2 is easier to maintain.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SSIS package that takes data from Tables in an SQL database
I have an SSIS package set up to export data from a SQL Server
I have an SSIS package which transfers the data from one database to another.
I have simple SSIS package which reads data from flat file and insert into
I have an SSIS package that queries data from a view using an SQL
I have simple SSIS package where I import data from flat file into SQL
I have a SSIS package which exports data from a query into a flat
I have created a (SSIS) package which contains SQL procedures for transfer of data
I have an ssis package...which read data from fixed-column-width text file into DB table.
I have an SSIS package that exports data from a table on a SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.