dbTalk Databases Forums  

SSIS package version number

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


Discuss SSIS package version number in the microsoft.public.sqlserver.dts forum.



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

Default SSIS package version number - 10-30-2008 , 04:34 PM






Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM






Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #3  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #5  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #6  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #7  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #8  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #9  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS package version number - 10-31-2008 , 06:43 AM



Hello Uma:
I have a standard methodology that I use for most all my packages. The first
step is to record the start time, package name and version in a log table in
SQL, and retrieve back to the package a Load_ID variable. Then when the
package is finished, the last step is to update that same SQL table (updating
only the one row, based on Load_ID) with Rows processed, stop time, etc.
So my log table has a record of when ANY SSIS package has been run, and one
of the items logged is the Version.

There are three items that make up the "Version" of an SSIS package: Major
Version, Minor Version, and Build. You can see, and change them, in the
Package Properties (scroll all the way to the bottom of the properties list).
Major and Minor versions will NOT change automaticaly. Build will be
incremented every time a package is saved inside Development Studio.

To capture this information, I have a String variable in each package
(called "Version", of course) and it has its "EvaluateAsExpression" property
set to True. Then in the Expressions, I have the following:

(DT_STR, 3, 1252) @[System::VersionMajor] + "." + (DT_STR, 3, 1252)
@[System::VersionMinor] + "." + (DT_STR, 5, 1252) @[System::VersionBuild]

This yields a string in the format of "1.2.34" which gets saved in my log
table.

Is this the kind of thing you are looking for?

HTH
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"Uma" wrote:

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the migration
is valid. How do I get/set the version number?

Thanks!
Uma

Reply With Quote
  #10  
Old   
msnews.microsoft.com
 
Posts: n/a

Default Re: SSIS package version number - 11-03-2008 , 02:18 AM



Versioning is a head ache. Use Team Foundation Server to source safe your
packages.

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

Quote:
Hi,

I am a DBA. We deploy SSIS packages on MSDB when a migration request comes
from the developers. The config file is on a file system. The packages are
run under SQl agent using a proxy account. Everything works well.

However, when I deploy the package I don't see the package version number
changing. I would like to use the version number to verify that the
migration
is valid. How do I get/set the version number?

Thanks!
Uma



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 - 2012, Jelsoft Enterprises Ltd.