Yes, maybe follow the link in the previous answer. Another little thing ... when you uncomment the goPackage.SaveToSQLServer file, you can use the flags parameter to indicate a reliable connection, for example:
goPackage.SaveToSQLServer "(local)" ,, DTSSQLStgFlag_UseTrustedConnection
Thus, you do not need to set a password in your code.
source
share