Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem using GLobal Variables in DTS Package

 
   Database Forums (Home) -> DTS RSS
Next:  online reference to mysql_errno() codes?  
Author Message
davem

External


Since: Jan 15, 2005
Posts: 3



(Msg. 1) Posted: Fri Aug 05, 2005 10:55 am
Post subject: Problem using GLobal Variables in DTS Package
Archived from groups: microsoft>public>sqlserver>dts (more info?)

Hello,

I use SQL 2K on a Win2K box

I have created a DTS package, the data source is a stored procedure with an
integer for the only parameter like:

exec myproc intparm

When I have a literal for the parm, it runs fine. When I replace the number
with a question mark, I get this message:

No value given for one or more required parameters

I get this message when I try the Preview button, but the Parse Query
returns success.

If I save the package & execute it, it fails and I get the message:

Invalid character value for cast specification

I have created a global variable called FI_ID, set it to be an "INT", and
given it an initial value of "1" (one), without the quotes. I hae assigned
this to the parameter.

The source connection for the transformation uses Microsoft OLE DB Provider
for SQL Server, the destonation is a CSV file, so there is only one
transformation for all of the fields returned by the stored proc.

Any ideas?

Thanks,
Dave

 >> Stay informed about: Problem using GLobal Variables in DTS Package 
Back to top
Login to vote
Vishal Parkar

External


Since: Aug 05, 2005
Posts: 1



(Msg. 2) Posted: Fri Aug 05, 2005 1:03 pm
Post subject: RE: Problem using GLobal Variables in DTS Package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Its a datype problem. Change the datatype of the global variable to integer.
With regards to preview its ok, as the value will be passed at run time.

--Vishal.

"DaveM" wrote:

> Hello,
>
> I use SQL 2K on a Win2K box
>
> I have created a DTS package, the data source is a stored procedure with an
> integer for the only parameter like:
>
> exec myproc intparm
>
> When I have a literal for the parm, it runs fine. When I replace the number
> with a question mark, I get this message:
>
> No value given for one or more required parameters
>
> I get this message when I try the Preview button, but the Parse Query
> returns success.
>
> If I save the package & execute it, it fails and I get the message:
>
> Invalid character value for cast specification
>
> I have created a global variable called FI_ID, set it to be an "INT", and
> given it an initial value of "1" (one), without the quotes. I hae assigned
> this to the parameter.
>
> The source connection for the transformation uses Microsoft OLE DB Provider
> for SQL Server, the destonation is a CSV file, so there is only one
> transformation for all of the fields returned by the stored proc.
>
> Any ideas?
>
> Thanks,
> Dave

 >> Stay informed about: Problem using GLobal Variables in DTS Package 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
dynamically set global variables - I have inherited a large number of DTS packages that have db logins/passwords hard coded in the global variables section. I want to change these to have the login/password stored in a central parameter table and have the packages look them up when the...

global variables with the utility DTSrun - I am launching DTSrun using global variables with /A. I have to pass the parameter "col1=col2" I have a problem: it only passes col1. Everything that comes after the sign = is not taken. I lauch dtsrun /Sbase /E /Ndtsname /Avarfilter:8=col1=c...

DTS Select and global variables / parameters - I have a DTS package. The select for one of the transform data tasks look like: SELECT * FROM UDF1('1/1/2005','12/31/2009') right now the dates are hard coded. Is there a way to pass parameters to the DTS package to change the dates? Can I use DTS...

ExecutePackage Task Global Variables - I'm trying to pass a global variable from a DTS package to the child packages that it calls using ExecutePackage tasks. I have selected the child's global variable on the Inner Global Variable tab and I have selected the parent's global variable on..

pass variables to ssis package - Hello, I placed a post regarding this issue previously but no success. So I thought I explain everything properly this time in a new post. Thanks I have created a stored procedure which passes variables to the ssis package and then executes the..
   Database Forums (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]