Solved

I need help with SSIS in SQL Server 2012

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Lessons learned during ten years of interviewing for SQL Server Integration Services (SSIS) and other Extract-Transform-Load (ETL) contract roles and two years of staff manager interviewing contractors.
My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now