![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a max length for DTS Global Variables of type string? I have a stored procedure that I am running using an Execute SQL Task and it is outputting a paramater of type varchar. I would like to output that parameter to the DTS package. The output parameter is at least 500 characters and the global variable is showing up as not displayable. Any help is appreciated. Thanks |
#3
| |||
| |||
|
|
Should be OK I did this IN an ExecuteSQL task did SELECT REPLICATE('A',1000) as Value I assigned this to an output variable of type string I then had an ActiveScript task that did MsgBox(Len(DTSGlobalVariables("Val").Value)) The answer was 1000 It looks as though your value is not being set. Period. Does it work with a smaller size varchar? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Andy" <Andy (AT) discussions (DOT) microsoft.com> wrote in message news:BABF4C3A-1E64-4D8D-89E1-7618288E46EA (AT) microsoft (DOT) com... Is there a max length for DTS Global Variables of type string? I have a stored procedure that I am running using an Execute SQL Task and it is outputting a paramater of type varchar. I would like to output that parameter to the DTS package. The output parameter is at least 500 characters and the global variable is showing up as not displayable. Any help is appreciated. Thanks |
#4
| |||
| |||
|
|
Yes it does work with a smaller size varchar, however I am getting mixed results. Sometimes with a larger varchar it has worked. "Allan Mitchell" wrote: Should be OK I did this IN an ExecuteSQL task did SELECT REPLICATE('A',1000) as Value I assigned this to an output variable of type string I then had an ActiveScript task that did MsgBox(Len(DTSGlobalVariables("Val").Value)) The answer was 1000 It looks as though your value is not being set. Period. Does it work with a smaller size varchar? -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - You thought DTS was good. here we show you the new stuff. www.konesans.com - Consultancy from the people who know "Andy" <Andy (AT) discussions (DOT) microsoft.com> wrote in message news:BABF4C3A-1E64-4D8D-89E1-7618288E46EA (AT) microsoft (DOT) com... Is there a max length for DTS Global Variables of type string? I have a stored procedure that I am running using an Execute SQL Task and it is outputting a paramater of type varchar. I would like to output that parameter to the DTS package. The output parameter is at least 500 characters and the global variable is showing up as not displayable. Any help is appreciated. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |