Hello,
I've implemented some code in a script component destination in BIDS, and the job actually runs fine until it hits a certain threshold, then fails. The code is roughly as follows:
client.Connect("xxxxxx", 12345)
client.Login("xxxxxx", "yyyyyy")
sw = New StreamWriter(client.GetUploadStream("test1.txt"))
sw.Write(Row.ZZZZ)
It tosses an error that says: "Error: 0xC0047062 at Emp Data, Script Component [4981]: System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine". It fails after about 19,700 rows written, and almost always on a date of some kind, though that could be a coincidence. The detail error is:
ScriptComponent_0f80d51f9c68465b85a87853e8d3d5a0
at
System.Net.Sockets.Socket.Receive(Byte[]
buffer, Int32 offset, Int32 size,
SocketFlags socketFlags) at
Rebex.Net.ProxySocket.Receive(Byte[]
buffer, Int32 offset, Int32 size,
SocketFlags socketFlags) at
Rebex.Net.SshSession.BXQTfX(Int32 )
at
Rebex.Net.SshSession.AePCoRZ(Byte[]& )
at
Rebex.Net.SshSession.cDtmAOZ(cMbfbTZ ,
Object[] ) at
Rebex.Net.SshChannel.cDtmAOZ(Boolean ,
cMbfbTZ , Object[] ) at
Rebex.Net.SshChannel.Receive(Byte[]
buffer, Int32 offset, Int32 count)
at wWGvS.AzRMspZ.BMJzdYZ(Byte[] ,
Int32 , Int32 ) at
wWGvS.APnbEo.BXQTfX(Int32 ) at
wWGvS.APnbEo.CFLiXJ(BBdsJfZ& ) at
wWGvS.APnbEo.CFLiXJ(UInt32 ) at
wWGvS.BlCLrNZ.Write(Byte[] buffer,
Int32 offset, Int32 count) at
System.IO.StreamWriter.Flush(Boolean
flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Write(String
value) at
ScriptComponent_0f80d51f9c68465b85a87853e8d3d5a0.ScriptMain.Input0_ProcessInputRow(Input0Buffer
Row) at
ScriptComponent_0f80d51f9c68465b85a87853e8d3d5a0.UserComponent.Input0_ProcessInput(Input0Buffer
Buffer) at
ScriptComponent_0f80d51f9c68465b85a87853e8d3d5a0.UserComponent.ProcessInput(Int32
InputID, PipelineBuffer Buffer) at
Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.ProcessInput(Int32
inputID, PipelineBuffer buffer)
Any help would be greatly appreciated!
Thanks,
Dean