MS SQL Server
  Home arrow MS SQL Server arrow Using Data Transformation Services: Using ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

Using Data Transformation Services: Using Global Variables with the DTS Designer
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2005-09-13

    Table of Contents:
  • Using Data Transformation Services: Using Global Variables with the DTS Designer
  • First example: Deleting Records
  • Execution
  • Second Example: Update Records
  • Execution again

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using Data Transformation Services: Using Global Variables with the DTS Designer


    (Page 1 of 5 )

    If you have ever wanted to create and use variables with global scope with the Microsoft DTS designer, this is the article for you. Two examples are used to illustrate the process, which involve deleting and updating records.

    This tutorial deals with creating and using variables with global scope by utilizing the DTS designer. During package creation it is possible to create variables and assign them values that will have global scope. Variables with global scope created at design time can be used at run time while executing a package. For example, you can modify the data using global variables in a where clause. If a package is saved with the global variables defined and assigned, it will retain the value so defined. Using ActiveX scripts, it is possible to define a global variable at run time by defining the variable outside of a function. When a variable is defined inside a function, it will have only a procedural scope, unavailable after the function.

    In Microsoft DTS, there are two ways to create/use global variables. It could be carried out at design time by specifying in the DTS designer (which is the gist of this tutorial) and dynamically by using ActiveX script, or by using the dtsrun utility with the /A command switch to define the variable.

    Creating and using the global variables will be illustrated in this article with two examples outlining the major steps involved.  It is suggested that the reader review the previous DTS tutorials at the ASP Free site (http://www.aspfree.com).

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


       · Most of the DTS tutorials on ASP free that I have written are related to using the...
     

    MS SQL SERVER ARTICLES

    - Windows Server 2008 as a Workstation OS
    - An Overview of Windows Server 2008 R2
    - LINQ to MySQL, Oracle and PostgreSQL Provide...
    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek