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

x
?
Solved

How to run DTSRUN remotely from other Machine

Posted on 2008-10-10
2
Medium Priority
?
391 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
2 Comments
 
LVL 9

Accepted Solution

by:
Sander Stad earned 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

916 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