Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfpoledb
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
01096768
Message ID:
01097073
Views:
16
Jon,

I would try to create DTS pacakge in DTS Designer, get it to work, save it as VB program and see what properties should be set.

>
>It could be that we are not defining the DataSource correctly - the folder in which the DBF tables reside:
>************************************
>FUNCTION AddSourceConnection
>************************************
>*
>* Add a source connection to the package
>*
>
>LOCAL oConnection AS DTS.Connection2
>
>oConnection = goPackage.Connections.New("VFPOLEDB")
>WITH oConnection
>	.Name = "Source Connection"
>	.ID = 1
>	.Reusable = .t.
>	.ConnectImmediate = .f.
>	.DataSource = "\\ServerName\SomeDir\"
>	.ConnectionTimeout = 60
>	.UseTrustedConnection = .f.
>	.UseDSL = .f.
>ENDWITH
>
>goPackage.Connections.Add(oConnection)
>RELEASE oConnection
>
>RETURN
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform