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)
-
at the end of any product there will be a reporting interfaces for counts. let say you build a advertisement site which gives people to publ...
-
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