Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

Sql package to import data from Excel 2003 -> Sql server 2000

I made an sql package that import data from Excel file into sql server table.
That package should be launched from a Delphi application.

 http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_21120355.html

How can I do that ?

0
PHD
Asked:
PHD
  • 2
1 Solution
 
bpanaCommented:
I've posted in the other question already. I'll also post it here also as it's more relevant to the question.

use the dtsrun command prompt utility:
WinExec('cmd /c dtsrun /Sserver_name /Uuser_nName /Ppassword /Npackage_name /Mpackage_password', SW_HIDE);
0
 
bpanaCommented:
or use master..xp_cmdshell stored procedure:

ADOConnection1.Execute('exec master..xp_cmdshell ''dtsrun /Sserver_name /Uuser_name /Ppassword /Npackage_name''', cmdText, [eoExecuteNoRecords]);
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now