Click here to Skip to main content
15,888,330 members
Home / Discussions / Database
   

Database

 
GeneralRe: Adding Sales Totals from multiple tables Pin
jkirkerx10-Mar-14 6:26
professionaljkirkerx10-Mar-14 6:26 
GeneralRe: Adding Sales Totals from multiple tables Pin
Jörgen Andersson10-Mar-14 8:35
professionalJörgen Andersson10-Mar-14 8:35 
QuestionHow to prevent or allow a insert trigger ? Pin
ngoloi9-Mar-14 6:15
ngoloi9-Mar-14 6:15 
AnswerRe: How to prevent or allow a insert trigger ? Pin
Mycroft Holmes9-Mar-14 13:09
professionalMycroft Holmes9-Mar-14 13:09 
GeneralRe: How to prevent or allow a insert trigger ? Pin
ngoloi9-Mar-14 18:02
ngoloi9-Mar-14 18:02 
AnswerRe: How to prevent or allow a insert trigger ? Pin
GuyThiebaut9-Mar-14 22:37
professionalGuyThiebaut9-Mar-14 22:37 
GeneralRe: How to prevent or allow a insert trigger ? Pin
ngoloi10-Mar-14 4:28
ngoloi10-Mar-14 4:28 
GeneralRe: How to prevent or allow a insert trigger ? Pin
GuyThiebaut10-Mar-14 4:52
professionalGuyThiebaut10-Mar-14 4:52 
It looks like you are performing an insert within your trigger on the table the trigger is running from
CREATE trigger In_LoaiDG1 on KhaoSat_LoaiDG1 

insert into KhaoSat_LoaiDG1

Any clues as to why this may be a bad idea?
Hint - infinity...

Just remove:
SQL
else
insert into KhaoSat_LoaiDG1(MaLoaiTT,Muc1,NgayDG) values (@MaLoaiTT,1,@NgayDG)

and see what happens.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens


modified 10-Mar-14 12:17pm.

QuestionSql Server Express: Testing sql-commands Pin
Frygreen9-Mar-14 3:03
Frygreen9-Mar-14 3:03 
AnswerRe: Sql Server Express: Testing sql-commands Pin
Richard MacCutchan9-Mar-14 3:33
mveRichard MacCutchan9-Mar-14 3:33 
AnswerRe: Sql Server Express: Testing sql-commands Pin
Jörgen Andersson9-Mar-14 7:42
professionalJörgen Andersson9-Mar-14 7:42 
AnswerRe: Sql Server Express: Testing sql-commands Pin
Mycroft Holmes9-Mar-14 13:05
professionalMycroft Holmes9-Mar-14 13:05 
AnswerRe: Sql Server Express: Testing sql-commands Pin
Richard Deeming10-Mar-14 2:49
mveRichard Deeming10-Mar-14 2:49 
GeneralRe: Sql Server Express: Testing sql-commands Pin
Frygreen10-Mar-14 7:40
Frygreen10-Mar-14 7:40 
Questionhow to convert an integer to days months years Pin
ahmad_yossef9-Mar-14 2:53
ahmad_yossef9-Mar-14 2:53 
GeneralRe: how to convert an integer to days months years Pin
Kornfeld Eliyahu Peter9-Mar-14 3:25
professionalKornfeld Eliyahu Peter9-Mar-14 3:25 
GeneralRe: how to convert an integer to days months years Pin
ahmad_yossef10-Mar-14 21:16
ahmad_yossef10-Mar-14 21:16 
AnswerRe: how to convert an integer to days months years Pin
Kornfeld Eliyahu Peter10-Mar-14 21:30
professionalKornfeld Eliyahu Peter10-Mar-14 21:30 
GeneralRe: how to convert an integer to days months years Pin
ahmad_yossef10-Mar-14 22:15
ahmad_yossef10-Mar-14 22:15 
AnswerRe: how to convert an integer to days months years Pin
Kornfeld Eliyahu Peter10-Mar-14 22:27
professionalKornfeld Eliyahu Peter10-Mar-14 22:27 
AnswerRe: how to convert an integer to days months years Pin
Richard MacCutchan9-Mar-14 8:13
mveRichard MacCutchan9-Mar-14 8:13 
GeneralRe: how to convert an integer to days months years Pin
ahmad_yossef10-Mar-14 21:17
ahmad_yossef10-Mar-14 21:17 
GeneralRe: how to convert an integer to days months years Pin
Richard MacCutchan10-Mar-14 22:18
mveRichard MacCutchan10-Mar-14 22:18 
AnswerRe: how to convert an integer to days months years Pin
Richard Deeming10-Mar-14 2:40
mveRichard Deeming10-Mar-14 2:40 
QuestionMySQL Silent Installation Pin
Jassim Rahma6-Mar-14 9:41
Jassim Rahma6-Mar-14 9:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.