Konu
timeout expired hatası
18-08-2012, 22:04:58
#5
HHHMMM
ertan2002 adlı üyeden alıntı:
mesajı görüntüle
bu durmlarda msdn e başvurmak lazım
The time in seconds to wait for the command to execute. The default is 30 seconds.
saniye olarak ayarlanıyor. zaten standart olarak 30 saniye imiş hiç bir değer vermezsen.. sanırm problem başka şeyden kaynaklanıyordur..
http://msdn.microsoft.com/en-us/libr...ndtimeout.aspx
bu da türkçesi
http://msdn.microsoft.com/tr-tr/libr...ndtimeout.aspx
edit: zamanla ilgili yok saymak için
The CommandTimeout property will be ignored during asynchronous method calls such as BeginExecuteReader.
bahsedilen metodu çağırmak gerekiyor.
http://msdn.microsoft.com/en-us/libr...utereader.aspx
30 sn gerçekten çok fazla bir süre. Bu kadar sürede cevap gelmemesi sizce neden olabilir ?
Edit:
o zaman SqlCommand'ı .ExecuteNonQuery() yerine .ExecuteReader() ile çalıştırsam bu sorunu yaşamam değil mi ?