dbTalk Databases Forums  

Passing global parameters to package from dtsrun

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Passing global parameters to package from dtsrun in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Snake
 
Posts: n/a

Default Passing global parameters to package from dtsrun - 03-23-2005 , 01:53 PM






DTSRUN is said to allow values to be passed-in to the DTS package. Books
Online has no complete example of this being done so I have to rely on the
syntax alone. Fine, but . . .

The syntax for DTSRUN shows /A global_variable_name:typeid=value. but I
don't know what values "typeid" takes. There is not a single mention in
Books Online, MSDN, or the two DTS books I purchased. So, I would like to
know where I can find decent examples as well as an enumerated list of
"typeid" values. I can't believe this info is not included in BOL.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Passing global parameters to package from dtsrun - 03-23-2005 , 02:29 PM






TypeID looks like this

Integer (small) 2
Integer 3
Real (4-byte) 4
Real (8-byte) 5
Currency 6
Date 7
String 8
Boolean 11
Decimal 14
Integer (1-byte) 16
Unsigned int (1-byte) 17
Unsigned int (2-byte) 18
Unsigned int (4-byte) 19
Integer (8-byte) 20
Unsigned int (8-byte) 21
Int 22
Unsigned int 23
HRESULT 25
Pointer 26
LPSTR 30
LPWSTR 31


From

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\coprompt.chm::/cp_dtsrun_95kp.htm

so /AMyVar:8="My String"



"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote


Quote:
DTSRUN is said to allow values to be passed-in to the DTS package. Books
Online has no complete example of this being done so I have to rely on the
syntax alone. Fine, but . . .

The syntax for DTSRUN shows /A global_variable_name:typeid=value. but I
don't know what values "typeid" takes. There is not a single mention in
Books Online, MSDN, or the two DTS books I purchased. So, I would like to
know where I can find decent examples as well as an enumerated list of
"typeid" values. I can't believe this info is not included in BOL.


Reply With Quote
  #3  
Old   
Snake
 
Posts: n/a

Default Re: Passing global parameters to package from dtsrun - 03-23-2005 , 02:47 PM



Allan,
Perfect! Where is this in Micirosoft Documentation?

Snake

"Allan Mitchell" wrote:

Quote:
TypeID looks like this

Integer (small) 2
Integer 3
Real (4-byte) 4
Real (8-byte) 5
Currency 6
Date 7
String 8
Boolean 11
Decimal 14
Integer (1-byte) 16
Unsigned int (1-byte) 17
Unsigned int (2-byte) 18
Unsigned int (4-byte) 19
Integer (8-byte) 20
Unsigned int (8-byte) 21
Int 22
Unsigned int 23
HRESULT 25
Pointer 26
LPSTR 30
LPWSTR 31


From

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\coprompt.chm::/cp_dtsrun_95kp.htm

so /AMyVar:8="My String"



"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote in message
news:Snake (AT) discussions (DOT) microsoft.com:

DTSRUN is said to allow values to be passed-in to the DTS package. Books
Online has no complete example of this being done so I have to rely on the
syntax alone. Fine, but . . .

The syntax for DTSRUN shows /A global_variable_name:typeid=value. but I
don't know what values "typeid" takes. There is not a single mention in
Books Online, MSDN, or the two DTS books I purchased. So, I would like to
know where I can find decent examples as well as an enumerated list of
"typeid" values. I can't believe this info is not included in BOL.



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Passing global parameters to package from dtsrun - 03-23-2005 , 02:57 PM



Books online at the URL I posted

Go | URL | Paste

"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote


Quote:
Allan,
Perfect! Where is this in Micirosoft Documentation?

Snake

"Allan Mitchell" wrote:

TypeID looks like this

Integer (small) 2
Integer 3
Real (4-byte) 4
Real (8-byte) 5
Currency 6
Date 7
String 8
Boolean 11
Decimal 14
Integer (1-byte) 16
Unsigned int (1-byte) 17
Unsigned int (2-byte) 18
Unsigned int (4-byte) 19
Integer (8-byte) 20
Unsigned int (8-byte) 21
Int 22
Unsigned int 23
HRESULT 25
Pointer 26
LPSTR 30
LPWSTR 31


From

mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL%2 0Server\80\Tools\Books\coprompt.chm::/cp_dtsrun_95kp.htm

so /AMyVar:8="My String"



"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote in message
news:Snake (AT) discussions (DOT) microsoft.com:

DTSRUN is said to allow values to be passed-in to the DTS package. Books
Online has no complete example of this being done so I have to rely on the
syntax alone. Fine, but . . .

The syntax for DTSRUN shows /A global_variable_name:typeid=value. but I
don't know what values "typeid" takes. There is not a single mention in
Books Online, MSDN, or the two DTS books I purchased. So, I would like to
know where I can find decent examples as well as an enumerated list of
"typeid" values. I can't believe this info is not included in BOL.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.