I am trying to set (programmatically or not) the command timeout in a specified dataset (A), right now I have my MVC model, I have created several datasets (A, B, C... N) for different stored procedures, I only require to extend this time for one dataset (A... again -.-), in addition I have seen different questions related but none has solved my problem. I show you my code below:
private static DAL.CopyCoinDataFromOracle.CoinDataTableAdapters.spCopyCoinDataTableAdapter cdOracle =
new DAL.CopyCoinDataFromOracle.CoinDataTableAdapters.spCopyCoinDataTableAdapter();
public static bool CopyInformationFromOracle()
{
bool? statusMethod = false;
cdOracle.CopyCoinDataFromOracle(ref statusMethod); //This is where I have the problem and the exception is thrown after 30 seconds are reached
return Convert.ToBoolean(statusMethod);
}
Just to be clear, "cdOracle" is my table adapter and my stored procedure is linked to "CopyCoinDataFromOracle" method, that query requires for the first time 60seg of execution, that´s why i want to increase that time (by default 30 seg.), the information is copied from a linked service with oracle to SQL Server Any help you can give will be appreciated.
Thanks in advance.