Aşağıda görünen SQL cümlesi gayet normal Query analyzer ile çalışan bi cümledir.
insert into ziyaretler(girisDate,ziyaretciAdi,ziyaretciKimlikbilgileri,ziyaretEdilen,ziyaretEdilenGorevi,ziyaretEdilenBirimi,ziyaretciKartNo,kaydiYapan,malzeme) values(cast('6:04:17 PM 1/17/2005' as datetime),'','','','9','8','','7','')
ama ne zamanki ASP.NET içinden çağıtıyorum
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated.
hatası alıyordum.
aylardir bunun derdini çeker dururdum bu gece çözüldü. bu problem benim
connection stringimin eksikliginden kaynaklaniyormus. ben klasik UDL dosyasi
olusturur ordan da connection stringimi çekerdim ve en default pozisyonda
gelen connection stringimde Language =..... diye bi ibare olmazdi megersem
kullanilan DB nin dili ve DB ye login olurken kullandigimiz user ine göre
Language=Turkish yazmak lazimmis. bu bi nevi veri datetimeformatinida
belirliyor.
http://www.prezzatech.com/kb/articles/kb-1005-conversion_char_to_datetime.asp
Subscribe to:
Post Comments (Atom)
-
After iphone 16 I wanted to test an android and looks like sony xperia 10 VI is nice, which is 6.1 inches, but it was narrow and longer than...
-
I took the first jab in August 15 around 10:30 in the morning. no pain or nausea or dry mouth, I have been intermittent fasting since 2017 ...
-
I haven't eaten around 67 hours and I am feeling pretty good, like I said after 48 hours I started another 48 hours of fast and come thi...
1 comment:
Hocam Allah razı olsun. convert ile çeviri içinde çeviri illetinden kurtardın beni. Aynı sorunu ben de yaşıyordum sabahtan beri. Teşekkür ederim paylaşımın için. Başarılar....
Post a Comment