October 9, 2008 at 6:35 pm
For the past two days, I've been troubleshooting an issue we have with an
SSIS package that was just created. If I open the package when running BIDS
as administrator, everything runs fine. If I open the package in any other
way or attempt to execute it from the Management Studio after deploying, I
get the following errors:
Error: 0xC0202071 at Import Log File to Raw Log, SQL Server Destination
[840]: Unable to prepare the SSIS bulk insert for data insertion.
Error: 0xC004701A at Import Log File to Raw Log, DTS.Pipeline: component
"SQL Server Destination" (840) failed the pre-execute phase and returned
error code 0xC0202071.
I've read several solutions to this issue. A work-around is to use an OLE
DB Destination. This works for us, but I'd really like to have the option
of using SQL Server Destinations in the future. I understand that the user
that the package is running as must have the "Create Global Objects"
permission and that the SQL Server Destination must be pointed to the local
machine. I've made sure that both of these qualifications have been met.
The connection string that the OLE DB Connection Manager is using is as
follows:
Data Source=localhost;User ID=sa;Initial
Catalog=xxx;Provider=SQLNCLI.1;Persist Security Info=True;Auto
Translate=False;Use Encryption for Data=False;
After running a trace in SQL Server Profiler, I noticed the following
discrepancy:
EventClass ApplicationName NTUserName
LoginName
Running as Administrator
ExistingConnection MS Visual Studio 2005
sa
Running as anything else
ExistingConnection MS Visual Studio 2005 myusername
MYDOMAIN\myusername
I suspect that since the package isn't logging in as 'sa', that's
the reason that everything's failing. Am I wrong? And if I'm not, how can
I fix this issue?
Viewing post 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy