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...
-
still in early steps and somehow I get the same http 500 error from docs.google.com. I dunno how to solve this.
-
geçen gün işden bi arkadaşla konuşuoz flash p2p yapıo dedim. olurmu lan öle şey windows firewall u var ne bilim modemden geçemez bi dünya an...
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