Solved

How to run DTSRUN remotely from other Machine

Posted on 2008-10-10
2
375 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 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
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…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now