Solved

How to run DTSRUN remotely from other Machine

Posted on 2008-10-10
2
387 Views
Last Modified: 2008-12-29
I have earlier on same server my application and MS SQL 2000 Server. Now I have switched my application to new server for load balancing.

On my Server where I have my application installed I also installed SQL 2005 for learning purpose but I still wish to use my MS SQL 2000 on old server.

Now in my application there are lot of .bat files which contain DTSRUN and OSQL which I want to run from my new Server but my database is on old Server. So I can not run these any more besides due to installation of SQL2005 I have dtstun and osql installed.

Can someone guide me how I can run DTSRUN and sql updates using osql when database is not on same server?

I can provide you script if desired.

Regards,

Nick
0
Comment
Question by:NickHoward
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Sander Stad earned 500 total points
ID: 22685407
You can do this by executing the following code:
EXECUTE master.dbo.xp_cmdshell 'dtsrun /S (local) /U {uid} /P {password} /N {name dts package}'
Make sure you have enabled the cmdshell function in MS SQL 2005 Surface Area Configuration

 
0
 

Author Comment

by:NickHoward
ID: 22695575
Thanks. However when I connect to my SQL 2000 via SQL 2005 studio, my existing dts worked.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question