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 8062443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:40:14+00:00 2026-06-05T10:40:14+00:00

I execute a BIDS package using command line (.bat). The package has a script

  • 0

I execute a BIDS package using command line (.bat). The package has a script task that successfully writes out a variable to the execution results when executed within BIDS:

([The Process is ] Information: VariableName)

I log this process when I execute via batch.

dtexec /FILE "\\Server\FilePath\LoadPackage.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING E >%LOGDIR%\%LogFile%

That process writes the following:

Microsoft (R) SQL Server Execute Package Utility Version 10.0.1600.22
for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights
reserved.

Started: 2:19:14 PM DTExec: The package execution returned
DTSER_SUCCESS (0). Started: 2:19:14 PM Finished: 2:19:14 PM Elapsed:
0.532 seconds

I’d like to write out the variable name to the above file.

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-06-05T10:40:16+00:00Added an answer on June 5, 2026 at 10:40 am

    Your batch script has requested that dtexec report E, Errors. If you add I (information) to that list, you should capture the missing event

    From dtexec /?

    /Rep[orting]        Level[;EventGUIDOrName[;EventGUIDOrName[...]]
                        Level = N or V or any one or more of E, W, I, C, D, or P.
    

    Your batch script would then look like
    dtexec /FILE "\\Server\FilePath\LoadPackage.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EI > %LOGDIR%\%LogFile%

    Let me know if that doesn’t work.

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

Sidebar

Related Questions

when i execute dtsx package through command line i am triggered with the following
SSIS (SQL 2005) packages that have a script task that invoke custom .NET dlls
How execute command via shell and return the complete output as a string using
I want to execute a command line tool to process data. It does not
I need to execute a Bash command in a Ruby script. There are about
Possible Duplicate: php execute a background process how can I achieve a task that
I want to run a SSIS package in command prompt... for that i used
I'm trying to execute a program on a file using the popen() command on
Trying to execute powershell script in my C# code. Using .NET Framework v. 4.0.30319
I execute sql queries as transactions using jdbi inTransaction() function. I would like to

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.