Question on the following function:
I've inherited a web application that is coded in VB.NET under the covers and I have a very limited knowledge of .NET. My problem is that I am needing to convert the executeSP() function that executes a SQL Server SP to use a method that returns a dataset but allows me the option to set a timeout setting because the ExecuteDataset() does not allow me an option to set a timeout setting. We're having problems with the application bombing due to the fact that the server where this application is sitting is conflicting with an intensive batch job running from the previous night.
I am on version VS 2003 using Framework 1.1
ANY help or direction would be greatly appreciated.
Thank you.
VB.NET:
Function executeSP(ByVal storedProcedureName As String, ByVal params() As SqlParameter)
Try
[B][COLOR=Red]Return SqlHelper.ExecuteDataset(oConnectionStringPROD, CommandType.StoredProcedure, storedProcedureName, params)[/COLOR][/B]
Catch e As SqlException
End Try
End Function
I've inherited a web application that is coded in VB.NET under the covers and I have a very limited knowledge of .NET. My problem is that I am needing to convert the executeSP() function that executes a SQL Server SP to use a method that returns a dataset but allows me the option to set a timeout setting because the ExecuteDataset() does not allow me an option to set a timeout setting. We're having problems with the application bombing due to the fact that the server where this application is sitting is conflicting with an intensive batch job running from the previous night.
I am on version VS 2003 using Framework 1.1
ANY help or direction would be greatly appreciated.
Thank you.