CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 1985|Reply: 8

SQL Server problem

[Copy link]
Post time 28-7-2007 10:16 AM | Show all posts |Read mode
penah tak korang encounter masalah data yang diupdate tak successful update tapi tak return any error.

kalau penah... agak2, apa sebabnya.
Reply

Use magic Report


ADVERTISEMENT


Post time 28-7-2007 12:05 PM | Show all posts
Originally posted by i212 at 28-7-2007 10:16 AM
penah tak korang encounter masalah data yang diupdate tak successful update tapi tak return any error.

kalau penah... agak2, apa sebabnya.


generalnya soalan..boleh bagi detailed info tak?
Reply

Use magic Report

 Author| Post time 28-7-2007 12:21 PM | Show all posts
oklah.. cth:
Update tblnew set idstatus='Active'

masa run query nih... takde error and effected records indicate 1 means successfull.

tapi sebenarnya data tu tak diupdate... status still 'Inactive'.
Reply

Use magic Report

Post time 28-7-2007 01:26 PM | Show all posts

Reply #3 i212's post

pasal tak dicommit
Reply

Use magic Report

Post time 28-7-2007 06:27 PM | Show all posts
biasanya kalau sql server terus commit melainkan kita setkan autocommit off.
Reply

Use magic Report

 Author| Post time 28-7-2007 10:31 PM | Show all posts
betul tu...
aku face benda nih lepas aku launch phase 2 punya system.
sebelum nih ok je...
aku tak tau sebab network ke atau sebab aku punya system atau sebab query aku atau sebab sql server punya setting.

Kalau bab query dalam program aku tuh... dah letih dah mengadjust... still happen the same thing.. dah tak tau nak point kat mana dah.

Tu kalau boleh aku nak tau.. kot2 ada orng yang penah encounter benda cam nih...

kalau tak de.. maybe aku kena analize balik coding aku... kot ade yang tercicir... tensen aku...
Reply

Use magic Report

Follow Us
Post time 30-7-2007 12:48 AM | Show all posts
try run query tue directly dalam sql.
kalau ada pakai where clause mungkin dekat situ.

kalau sql tue panjang, try potong-potongkan
dan jalankan dalam ms sql tu.

kalau dalam application,
mungkin dalam application ada pakai transaction.
maksudnya ada begin transaction tapi tak letak end transaction punye command
lepas run query.
Reply

Use magic Report

Post time 30-7-2007 10:23 AM | Show all posts
tu run macam tu je ke atau part of a conditional statement (IF block?)

kalau run manual macam tu je table tu update tak?
Reply

Use magic Report


ADVERTISEMENT


Post time 30-7-2007 08:36 PM | Show all posts
aku selalu gak jadi macam tu
biasanya pasal connection string aku
ataupun pasal variable aku silap
atau lagi pasal coding aku silap
tapi
nak solve biasanya aku akan pecahkan coding aku kecil-kecil dan sambungkan semula coding sampai jumpa error tu

[ Last edited by  yIEn at 30-7-2007 08:40 PM ]
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

3-1-2025 01:06 AM GMT+8 , Processed in 0.045279 second(s), 21 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list