?
Solved

I need help with SSIS in SQL Server 2012

Posted on 2014-02-24
1
Medium Priority
?
325 Views
Last Modified: 2016-02-10
Hi Experts,
I created an SSIS package (.dtsx file) in my SQL Server 2012 server.  The SSIS package imports a file from a directory in our network and dumps it into a table in my database.  When I try to execute the .dtsx from a stored proc, nothing gets imported into my database.  See my stored proc code below.  Is the syntax correct?  What do I need to check?

BEGIN
DECLARE @params nvarchar(400)

SET @params = 'dtexec /file "C:\Trans\TransFEB_2014.dtsx"'

EXEC @returncode = xp_cmdshell @params, no_output

SELECT @returncode
END

Open in new window


Thanks in advance,
mrotor
0
Comment
Question by:mainrotor
[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
1 Comment
 
LVL 5

Accepted Solution

by:
Bob Bender earned 2000 total points
ID: 39884430
maybe this link will help you in executing the dtsx file from a stored procedure

http://www.codeproject.com/Articles/27156/How-to-Call-SSIS-Package-from-the-Stored-Procedure
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
Viewers will learn how the fundamental information of how to create a table.
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.

766 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