I have some VB code:
If cnn.State = ConnectionState.Closed Then
cnn.Open()
End If
Dim cmd As New SqlCommand("[WENCO].[dbo].[MyProc]", cnn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.AddWithValue("@Data_Date", useDate)
cmd.Parameters.AddWithValue("@ALTERNATE_LOC", alternateLocation)
cmd.ExecuteReader()
The procedure itself grabs some DB information, creates a file and then writes to it. The code is merely a run procedure GUI for those who do not have permissions in SSMS. This issue I am facing is that whenever the data that must write to the file is above 104 KB it does not write any information at all.
I myself can run the stored procedure from SSMS with zero issue.
Any thoughts on what could possibly be causing this issue would be much appreciated.