My company recently decided to move to ASP.NET MVC with all the bells and whistles. One of the technologies we now use is Entity Framework.
I need to call a stored procedure that runs a few selects and then writes the data to a flat file using BCP. When I execute the stored procedure using SSMS, it works perfectly fine, but when I let it execute through Entity Framework, the BCP
command doing the export simply hangs until the connection times out.
I have started up SQL Server profiler and managed to grab the call to the stored procedure being sent through, which works when ran thru SSMS. If I open task manager and end the BCP
process, the stored procedure continues processing everything else without any hassles.
What could be causing this and how can I get my stored procedure to run using Entity Framework?