SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Create SQL Jobs using TFS project


Create SQL Jobs using TFS project

Author
Message
river1
river1
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11492 Visits: 1737
Dear all,

I have a TFS project that generates jobs. Code sample below:

-- variable declarations

DECLARE @sqlJobName NVARCHAR(255) ;

DECLARE @sqlJobSSISPackagePath NVARCHAR(max) ;

DECLARE @sqlJobSSISParameters NVARCHAR(max) ;

DECLARE @sqlJobSourceLinkedServer NVARCHAR(max) ;

DECLARE @sqlJobSourceDatabaseName NVARCHAR(max) ;

DECLARE @sqlJobSSISServer NVARCHAR(200) ;

-- common parameters for all jobs

SET @sqlJobSSISPackagePath = 'dwhSourceToStaging\dwhSourceToStaging\SrcToStg_Master.dtsx' ;

SET @sqlJobSSISServer = '$(SSISServer)' ;

-- specific job configuration for ICRM job

SET @sqlJobName = '00 - DWH Source To Staging - ICRM' ;

SET @sqlJobSourceLinkedServer = '$(SrcToStgICRMServer)' ;

SET @sqlJobSourceDatabaseName = '$(SrcToStgICRMGatewayDB)' ;

SET @sqlJobSSISParameters = '/Par "\"pSourceConnectionName\"";"\"dwhICRMGateway\"" '

+ '/Par "\"pSourceSystem\"";"\"ICRM\"" '

+ '/Par "\"pSourceLinkedServer\"";"\"' + @sqlJobSourceLinkedServer + '\"" '

+ '/Par "\"pSourceDatabase\"";"\"' + @sqlJobSourceDatabaseName + '\"" '

;

-- run the stored procedure to set up or update the ICRM job

EXEC [ETL].uspCreateOrUpdateSSISJob

@sqlJobName = @sqlJobName

, @sqlJobSSISPackagePath = @sqlJobSSISPackagePath

, @sqlJobSSISParameters = @sqlJobSSISParameters

, @sqlJobSSISServer = @sqlJobSSISServer



I would like to changhe the way that those jobs are created in terms of the logging level. Currently they are created with logging level equal to basic. I would like to set it to None. how can I change the code to create this ?

Probably what I need is just to add another variable.

Can you please help?

Thank you


P.S - Addind a little more of verbose to it:

I have several SSIS packages that are set to use the logging level = none. Those SSIS packages are called by SQL Server Jobs. In those jobs the logging level is set to basic. I would like to change then to none. I know how to do this from the GUI (MS) but I don't know how to do it from a t-sql perspective instead of using the GUI. Can you please help? thnak you very much

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search