473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Globar Variable in DTS:: Urgent

I am creating a DTS Package to copy data from text file to table, and result along with time etc has to entered in a log table created by me.

I am trying to use Global Variables for the same.. I have set the value of the global variable by going into Package Properties, but when I try to use the variable as:

update Employee_Logtable
set End_DT = getdate () ,
No_of_Rows_Loaded_by_Package = (select count (*)
from Employee_Description ) ,
Status_Message='successfull loading'
where Name_Package= ?

it is not substituting the value of ? to the global variable..

(I want something like this:

update Employee_Logtable
set End_DT = getdate () ,
No_of_Rows_Loaded_by_Package = (select count (*)
from Employee_Description ) ,
Status_Message='successfull loading'
where Name_Package= <<<MY GLOBAL VARIABLE>>>

)


I am a new user in DTS.

Can anyone please help me out. Its urgent.
Dec 31 '07 #1
1 1304
Within the DTS Click on the 'execute SQL task' Icon.
This will contain your update sql that refers to a parameter with question mark. On that same window there is a button 'Parameters'. Click that it and it opens up another dialogue. In the 'Input Parameters' tab click in the global parameters area and you should have a 'parameter 1' entry on the right hand side (that refers to your first ?).
All you have to do is select the your global parameter on the left side <<<MY GLOBAL VARIABLE>>>.
Jan 4 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jagannathan Santhanam | last post by:
Hello We are facing a peculiar problem. We have many ODBC connections to the various Progress / MFG-Pro Databases. We dynamically assign and connect to one of the various ODBC connections and...
1
by: Andy | last post by:
We are running a DTS package with the dtsrun utility and would like to pass a variable through it. Inside our package we have a VB script that references a table that contains the information...
1
by: Peter | last post by:
I am attempting to export data on a daily basis via DTS to an XL spreadsheet. I would either like to: a) have a separate worksheet in the spreadsheet for each export or b) a completely different...
1
by: Billy Cormic | last post by:
Hello, I am having difficulty with global variables in DTS. Specifically I would like to instantiate a global variable with a value obtained from a SQL database. I have created the global...
2
by: owais | last post by:
H I want to display progress bar during execution of windows form. When I execute DTS package the form will idle till the DTS package finishes Please help me in this regard. its an urgen ...
1
by: gary.scott | last post by:
Aaaaaarrgghh ! (that's better) I am trying to convert a field within my Oracle 9i Database that is of type BLOB (but this BLOB may contain a combination of clobs/varchars or images such as gif...
1
nikpreek
by: nikpreek | last post by:
Hi All, I'm trying to upload a delimited text file containing french characters to SQL server 2000 using DTS. After upload, all the french characters are messed up. I though I dont have some...
2
antonopn
by: antonopn | last post by:
Hello there, thank you for your time! Here is my problem. I have a dts package that sould run monthly. The user should set a date each time it runs. This date is a variable that used in the dts....
0
antonopn
by: antonopn | last post by:
Hello there! I'm really confused about this! I have created a project (DTS in SQL SERVER 2000) which imports a txt file and runs some SQL statements. I want the user who runs it each time to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.