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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:41:55+00:00 2026-05-23T09:41:55+00:00

We currently use Batch files to load procedures, execute script files and call stored

  • 0

We currently use Batch files to load procedures, execute script files and call stored procedures by calling the sql sefver utilities cmdutil, dtexec, and osql.

Based on the value of the returned exit codes, we determine the next step to run.

Batch files seem a little primitive to me and I imagine that I would be happier writing this “job control flow” code in a driver .NET program, but I assume that most developers would choose to use some sort of scripting language to do this.

I am considering using VB WSH Script since it appears to give me better language constructs (eg, if then else) and access to COM objects, but I suppose that even that is a little dated and that I should be looking into Powershell.

My question is this:

What are the advantages/disadvanagtes of using Powershell over compiled .NET code for developing a Workflow control program? I suspect that the development environment and compile time checking using the Visual Studio IDE would make me more productive than using script.

I was doing a hello world app to try and utilize one of my .NET libraries from PS and I got the impression that PS just blows over bad code. Does it have sufficient error handling capabilities compared to compiled .NET code?

  • 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-23T09:41:55+00:00Added an answer on May 23, 2026 at 9:41 am

    Powershell can do anything that you would in a batch file and anything you can using C#.

    It is a very good scripting language ( the ease with which you can script in Ruby and Python can be found in Powershell as well ) and there are some nice IDEs for it as well. Given that it is not completely supported in VS, there are some efforts in that area as well like the PowerGUI VS

    With Powershell you can do error management using exit codes like you would elsewhere and also try-catch exceptions and other constructs like trap, throw etc. Error management is rich in Powershell. You can also use C# code in Powershell using cmdlets like Add-Type.

    Subjective part of the answer:

    I suspect that the development
    environment and compile time checking
    using the Visual Studio IDE would make
    me more productive that using script.

    What you seem to want to do seems ideal for scripting. And Powershell is the natural choice for scripting on Windows. I don’t see how “compile time checking” makes you more productive, I would have thought scripting languages had the advantage of making you productive.

    I don’t really understand what you mean by PS just blows over bad code – but Powershell is just like any other language and bad code or not depends on how you are writing the code.

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

Sidebar

Related Questions

At work we currently use the following deployment strategy: Run a batch script to
We currently use a hand-rolled setup and configuration script and a hand-rolled continuous integration
I'm looking for a way to call a python script from a batch file
For some reason, we have a script that creates batch files to XCOPY our
We use org.springframework.batch.test.DataSourceInitializer class in order to init DB on basis of .sql scripts.
Currently I use puTTY, open SSH connection to my Ubuntu server and execute some
I currently use nant, ccnet (cruise control), svn, mbunit. I use msbuild to do
I currently use a DataTable to get results from a database which I can
I currently use subversion for my version control via AhnkSVN and Visual Studio. I
I currently use AnkhSVN to integrate subversion into Visual Studio. Is there any reason

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.