[AccessD] Pass Through to DTS package

Brett Barabash BBarabash at TappeConstruction.com
Tue Aug 17 17:37:41 CDT 2004


You can omit the /A if you aren't passing in parameter values.

Are there any other messages given?  Depending on your package
transaction setup, it may rollback the works if it doesn't succeed on
any one of the steps.

Are you sure that this package is working properly (i.e. have you tested
it from the DTS package designer?)

Can you test it from a command prompt on the server?  Query Analyzer?

And the most important one of all.  Make sure that the account running
the stored procedure has proper access rights:
	- In Enterprise Manager, expand the Management folder 
	- Right click on the SQL Server Agent Properties
	- Check the Non-SysAdmin job step proxy account section.  
		- If it is unchecked, then only SysAdmins can use
xp_cmdshell.  
		- If it is checked, then ensure that the Proxy Account
is pointing to an account with SysAdmin rights.


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie
Johnson
Sent: Tuesday, August 17, 2004 4:31 PM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Pass Through to DTS package
---------------------------------------------------------------

OK,
 
I got this to run successfully but it is not actually updating my
records. When I take out the NO_OUTPUT it actually says 42 records
affected. But when I look in the table, they are not chaged. This is my
command...
 
EXEC master..xp_cmdshell 'dtsrun /S "SQLSVR1" /E /N "TestPackage" /A ',
NO_OUTPUT 
 
Can you see anything wrong?


Brett Barabash <BBarabash at tappeconstruction.com> wrote:
Lonnie,
I normally use DTS run from xp_cmdshell:

EXEC master..xp_cmdshell 'dtsrun /S /E /N "
Name>" /A
=
', NO_OUTPUT

Notes:
/E indicates use trusted connection. Alternatively you can user /U /P
for SQL Server security. 
/A is used for setting global variable values I use the NO_OUTPUT option
when executing this from a SQL Server sp, because ADO mistakes the
console output for an error message.

Type dtsrun /? from the server's command window (or master..xpcmdshell
'dtsrun /?' from a query window) for help on all the switches, or look
it up in books online.



-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie
Johnson
Sent: Tuesday, August 17, 2004 11:19 AM
To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access;
AccessD solving'
Subject: [AccessD] Pass Through to DTS package


Does anyone know if you can send instructions via a pass though query to
start a SQL Sever 2000 DTS package?

Anxiously awaiting



May God bless you beyond your imagination!
Lonnie Johnson
ProDev, Professional Development of MS Access Databases Visit me at ==>
http://www.prodev.us


--------------------------------------------------------------------------------------------------------------------
The information in this email may contain confidential information that 
is legally privileged. The information is only for the use of the intended 
recipient(s) named above. If you are not the intended recipient(s), you 
are hereby notified that any disclosure, copying, distribution, or the taking 
of any action in regard to the content of this email is strictly prohibited.  If 
transmission is incorrect, unclear, or incomplete, please notify the sender 
immediately. The authorized recipient(s) of this information is/are prohibited 
from disclosing this information to any other party and is/are required to 
destroy the information after its stated need has been fulfilled.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

This footer also confirms that this email message has been scanned
for the presence of computer viruses.Scanning of this message and
addition of this footer is performed by SurfControl E-mail Filter software
in conjunction with virus detection software.




More information about the AccessD mailing list