coding @ the speed of thought RSS 2.0
 Monday, June 23, 2008
Bazı zamanlar vardır, bir virgül bile birkaç saate mal olabilir.İşte şansıma geliştirme aşamasında yakaladığım bir "copy paste programming" hatası.

if @va_niccheckcfg_id=0
     begin
         insert
             va_niccheckcfg_tbl
         values
             (
             @va_niccheckcfg_name,
             @va_niccheckcfg_status,
             @va_niccheckcfg_esxip
             )
     end
 else
     begin
         update
             va_niccheckcfg_tbl
         set
             va_niccheckcfg_name=@va_niccheckcfg_name,
             va_niccheckcfg_status=@va_niccheckcfg_status,
             va_niccheckcfg_esxip=@va_niccheckcfg_esxip
         where
             @va_niccheckcfg_id=@va_niccheckcfg_id
     end


evet farketmişsinizdir, update komutunun koşulunda
@va_niccheckcfg_id=@va_niccheckcfg_id
kodu bütün tabloyu 2 sn de allak bullak edebilecek bir potansiyele sahip.

AMAN DİYORUM :)
Monday, June 23, 2008 1:33:51 AM (GTB Standard Time, UTC+02:00)  #    Comments [0] -
Software
Archive
<June 2008>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Levent YILDIZ
Sign In
Statistics
Total Posts: 99
This Year: 31
This Month: 10
This Week: 2
Comments: 28
Themes
Pick a theme:
All Content © 2008, Levent YILDIZ
DasBlog theme 'Business' created by Christoph De Baene (delarou)