I am running a DTS package from VB6 on NT4 connectioning to a SQL Server 2000 on a virtual PC using the following line of code, however getting an Access denied error.
DTSPackage.LoadFromSQLServer ServerName:=DataSource, ServerUserName:="sa", ServerPassword:="sa", Flags:=DTSSQLStgFlag_Default, PackageName:="dts_Package"
When I set up the main connection to the database I add in the 'Network Library=DBMSSOCN' and this works but can not see how this can be added to the above line of code.