Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > BOOK: Professional SQL Server 2000 DTS
|
BOOK: Professional SQL Server 2000 DTS
This is the forum to discuss the Wrox book Professional SQL Server 2000 DTS (Data Transformation Services) by Mark Chaffin, Brian Knight, Todd Robinson; ISBN: 9780764543685
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2005, 09:17 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Regarding executing DTS package in stored procedur

Hi,
    I have created a DTS package on my SQL server to import data from dbf file.
I am able to execute it directly. ie Data Transformation Services-->Local Packages-->execute package.

But if I am writing an sql statement to execute it i am not able to do that.
EXEC master..xp_cmdshell 'DTSRun /S "Test1" /U "aa" /P "aa" /N "ImportSecond" /G "{D75AFA82-8DC6-4AF3-B48E-6884E97D6BA1}" /W "0"'

I am getting the following error

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Create Table [BomNetOperation].[dbo].[branch] Step
DTSRun OnFinish: Create Table [BomNetOperation].[dbo].[branch] Step
DTSRun OnStart: Copy Data from branch to [BomNetOperation].[dbo].[branch] Step
DTSRun OnError: Copy Data from branch to [BomNetOperation].[dbo].[branch] Step, Error = -2147467259 (80004005)
   Error string: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
   Error source: Microsoft OLE DB Provider for ODBC Drivers
   Help file:
   Help context: 0

Please guide.
 
Old March 29th, 2005, 10:55 PM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dvpo24,
It looks like your execution of the package worked because it created the Branch table in your target database; however when it try to copy the data it failed. Your source connection is not defined properly. You need to check you connection attributes. Make sure you choose the appropriate driver and test the connection.

Regards,
Fernando Sanchez
 
Old November 16th, 2005, 11:33 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm facing the same problem as stated below. Has anybody found a solution for this? Please help.

Quote:
quote:Originally posted by dvpo24
 Hi,
    I have created a DTS package on my SQL server to import data from dbf file.
I am able to execute it directly. ie Data Transformation Services-->Local Packages-->execute package.

But if I am writing an sql statement to execute it i am not able to do that.
EXEC master..xp_cmdshell 'DTSRun /S "Test1" /U "aa" /P "aa" /N "ImportSecond" /G "{D75AFA82-8DC6-4AF3-B48E-6884E97D6BA1}" /W "0"'

I am getting the following error

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: Create Table [BomNetOperation].[dbo].[branch] Step
DTSRun OnFinish: Create Table [BomNetOperation].[dbo].[branch] Step
DTSRun OnStart: Copy Data from branch to [BomNetOperation].[dbo].[branch] Step
DTSRun OnError: Copy Data from branch to [BomNetOperation].[dbo].[branch] Step, Error = -2147467259 (80004005)
   Error string: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
   Error source: Microsoft OLE DB Provider for ODBC Drivers
   Help file:
   Help context: 0

Please guide.






Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best way to test T-SQL stored procedur woojtii SQL Language 0 August 18th, 2006 11:38 AM
Executing DTS package from Stored Proc irfankhanpathan SQL Server DTS 2 September 28th, 2005 01:12 AM
Executing DTS package from ASP page via SP savoym Classic ASP Basics 0 April 28th, 2005 07:02 AM
Executing a DTS package on value change gyno.bell SQL Server DTS 1 March 1st, 2005 02:50 PM
Running DTS package from withing a stored proc flaco SQL Server DTS 2 July 27th, 2004 05:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.