Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to call batch file (.bat) in SSIS?

$
0
0

Hi, I have created a test package to load data into 2 tables. so created two simple insert scripts and created a batch file and calling batch file in execute process task. but i am getting error :

Error: 0xC0029151 at Execute Process Task, Execute Process Task: In Executing "C:\sql.bat" "" at "", The process exit code was "1" while the expected was "0".

and if i check in dos prompt, i am getting error Login Failed.

Can somebody tell me how to call a batch file in ssis?

the script i have used in batch file is

SQLCMD -E -dHRMS_SITE -iC:\aTest1.sql

SQLCMD -E -dHRMS_SITE -iC:\aTest2.sql


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>