Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a SQL Server 2005 .dtsx package from VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01276333
Message ID:
01276517
Views:
26
Interesting.... do you know if this work with SQL Server 2005 dtsx packages though? Or does it only work for SQL Server 2000 dts ones?


>Hi,
>
>You might also try...
>
>
>oPkg=createobject([dts.package])
>opkg.LoadFromSQLServer( "YourServerName", "<userid>", "<password>",256, "", "", "", "YourDtsPkg")
>opkg.Execute
>
>
>Replace "YourServerName" with the SQL server you wish to access and "YourDtsPkg" with the dts package you wish to run.
>
>"userid" and "password" should remain just the way they are. At least that's the way it works for me. I do not have to supply userid and password.
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform