Jump to content
Sign in to follow this  
Pat_Rick

Need some help with DDE script function

Recommended Posts

Hi everyone!!

Could someone show me how to use the DDE script function to call a DTS package(SQL server). Or to call an excel spread sheet.

Can it be done!!!!! smirk.gif

Thanx in advance for your input and help.

Pat.

Share this post


Link to post
Share on other sites

If you just want to open excel then use Open URL ("pathnamefilename").

If you want to call DTS then write your DTS script in a batch file, then have Open URL call it. Your batch file may look like this:

"C:Program FilesMicrosoft SQL Server80ToolsBinndtsrun.exe" /N<MYDTS>

If you want to call an excel function using DDE Excecute:

Service Name: Text, Excel

Topic: Text, System

Commands: Text, [run("myexcel.xls!mymodule.myfunction")]

**oops this is in version 55/6 but it should work with 7.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.