My Blog List

hotinit.com. Powered by Blogger.

Search This Blog

Showing posts with label ssis. Show all posts
Showing posts with label ssis. Show all posts

Dynamically generate connestion String Using Script Task IN SSIS

Thursday, 30 June 2011


Dynamically generate connestion String Using Script Task
(visual basic)
Public Sub Main()
Dts.Variables("Destn").Value = "Data Source=" & Dts.Variables("ServerName").Value.ToString & ";User ID=" & Dts.Variables("DBUserName").Value.ToString & ";Password =" & Dts.Variables("DBPwd").Value.ToString & ";initial Catalog=" & Dts.Variables("DBName").Value.ToString & ";Provider=SQLNCLI10.1;Persist Security Info=True;Auto Translate=False;Auto Translate=False;"
Dts.TaskResult = ScriptResults.Success
End Sub


Where Destn, ServerName, DBUserName, DBPwd, DBName are SSIS Variables

 

Blogger news

Blogroll

Most Reading

8.6/10