Solved

I need help with SSIS in SQL Server 2012

Posted on 2014-02-24
1
315 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 500 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

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