Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Saturday, 31 May 2014

Mini Post: DTUTIL.exe

Hey everyone! Welcome back to SQL Something!

Let's see if we can get a couple posts in on the last day of the month.

In the next few posts we're gonna take a brief look at some of the command prompt utilities that get installed when you install Integrated Services (IS). These utilities are 32-bit unless you also install Client Tools or Data Tools.

The first of which is here (DTEXEC.exe).

The second of which is DTUTIL.exe.

DTUTL.exe is a command prompt utility used to manage SSIS packages. DTUTIL allows you to COPY, MOVE, DELETE or verify if a package EXISTs. The utility can be used on packages stored in:
  • A SQL Server DB
  • A SSIS Package Store
  • The File System

(You designate the package location via the location options: /SQL, /DTS, /FILE respectively)

Syntax is as follows: DTUTIL /OPTION[Value] [/OPTION[Value]...]
Example: DTUTIL /SQL PackageName /DELETE

The above example calls the utility and tells it to delete the package named 'PackageName' in a SQL Server DB.

There are several parameters for the utility, but we'll just look at a few key ones below:
  • /COPY - allows you to copy a package to a designated location.
  • /DELETE - allows you to delete apackage in a designated location.
  • /EXISTS - verifies that a package exists in a designated location.
  • /MOVE - moves a package from a designation source to a designated destination.

When copying to a SQL Server DB, sometimes credentials are required. For this you can use the below optional parameters:
  • /SOURCEU - Source Username
  • /DESTU - Destination Username
  • /SOURCEP - Source Password
  • /DESTP - Destination Password

DISCLAIMER: As stated, I’m not an expert so please, PLEASE feel free to politely correct or comment as you see fit. Your feedback is always welcomed. :-)

Mini Post: DTEXEC.exe

Hey everyone! Welcome back to SQL Something!

Let's see if we can get a couple posts in on the last day of the month.

In the next few posts we're gonna take a brief look at some of the command prompt utilities that get installed when you install Integrated Services (IS). These utilities are 32-bit unless you also install Client Tools or Data Tools.

The first of which is DTEXEC.exe.

DTEXEC.exe is a command prompt utility that is used to configure and execute SSIS packages.

Configure:
  • It let's you load packages from SQL Server, A SSIS package store and the File System.
  • It let's you access package configurations which include: Parameters, Variables, Properties and Logging.

Execution:

Actual execution is done by calling three stored procedures.

You can view examples of syntax here.

DISCLAIMER: As stated, I’m not an expert so please, PLEASE feel free to politely correct or comment as you see fit. Your feedback is always welcomed. :-)

Wednesday, 29 January 2014

Mini Post: Backing Up/Restoring From The Command Line

Hey everyone and welcome back to SQL Something!

I happened to see an old post of mine (towards the bottom of the post) where I mentioned restoring from the command line but I did not actually say how.

So that's what I want to look at really quickly.

Thursday, 28 February 2013

SQL Server Configuration Manager Error: Cannot Connect to WMI Provider



Good day everyone and welcome back again to another instalment of SQL Something (now with pictures!).

Today we are going to look at something that really surprised me during work last week, because frankly I never heard about nor saw anything like it. But, once you tackle an issue with a cool head and your good friend Google, everything will be alright.