Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Project Parameters in SQL Server

$
0
0

I wonder how i can esure that a package uses project parameters when installed in SQL Server SSISDB.

I have a SSIS project where i have delcared som project.parameters for userid and password and URL to a webservice.

Then from a script component i read these parameters.

oHIT = New FLISHITWS.FlisHitDataService         
oHIT.Timeout = Variables.Timeout
oHIT.Url = Variables.WebServiceUrl
oHIT.Credentials = New NetworkCredential(Variables.UserId, Variables.Password, Variables.Domain)

oDs = oHIT.gettableboktyp("jbo")

For Each oRow In oDs.Tables(0).Rows

 twboktypoutputBuffer.AddRow()
 twboktypoutputBuffer.boktyp = Convert.ToInt32(oRow("boktyp").ToString())
 twboktypoutputBuffer.boktypkort = oRow("boktypkort").ToString()
 twboktypoutputBuffer.beskr = oRow("beskr").ToString()
 twboktypoutputBuffer.sparrad = Convert.ToBoolean(oRow("sparrad").ToString())
 twboktypoutputBuffer.EndOfRowset()
Next

But when i have installed it by deploy to an Integration services catalog (SSISDB) the parameters seem to be lost. I can create an environment in SQL server and manually set the parameters for each package and get it to function.

But this is rather cumbersome and when i have to redeploy the project i have to do it all again. I think i am missing something here. Any ideas?

Best regards

John




Viewing all articles
Browse latest Browse all 24688

Trending Articles