Solved

run DTS Package in Ms SQL Query Analyzer

Posted on 2003-11-02
4
1,087 Views
Last Modified: 2008-01-16
I'm trying to run DTS package to transform data from AS400/DB2 via Client Access ODBC ( Ms Windows 2000 Server, Ms SQL 2K, Client Access Driver 4.5)

but the result of testing has messed me up

because when i used this command via SQL Query Analyzer

exec master..xp_cmdshell 'DTSRun /S "MySVR" /U "sa" /N "dtsTEST" /G "{482209FD-0891-11D8-868C-00E0299B4BCF}" /A "G1":"8"="20031001" /W "0"'

--it doesn't work--


I wonder why??.. because it can be executed in MS-Dos prompt successfully.

if I type

DTSRun /S "MySVR" /U "sa" /N "dtsTEST" /G "{482209FD-0891-11D8-868C-00E0299B4BCF}" /A "G1":"8"="20031001" /W "0"

in the command line. The data comes from AS400 into MsSQL Server correctly.


If somebody can help, please give me some advices (urgent!!).

Thanks.
0
Comment
Question by:yukund
[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
4 Comments
 
LVL 15

Accepted Solution

by:
namasi_navaretnam earned 63 total points
ID: 9666740
Try This,

declare @cmd varchar(1000)
select @cmd = 'DTSRun /S "MySVR" /U "sa" /N "dtsTEST" /G "{482209FD-0891-11D8-868C-00E0299B4BCF}" /A "G1":"8"="20031001" /W "0"'
select @cmd = ' echo ' + @cmd + ' > c:\mycmd.bat'
exec master..xp_cmdshell @cmd

exec master..xp_cmdshell 'c:\mycmd.bat'

HTH

Namasi Navaretnam
0
 
LVL 34

Assisted Solution

by:arbert
arbert earned 62 total points
ID: 9668406
Don't put the quotes around the parms--they aren't required....
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS RDS Backups? 3 63
SYbase 4 44
Shrink multiple databases at once 4 56
Estimating my database size 7 17
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

733 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