Click here to Skip to main content
16,005,114 members
Home / Discussions / Database
   

Database

 
GeneralRe: T-SQL Question Pin
Colin Angus Mackay11-Aug-05 2:23
Colin Angus Mackay11-Aug-05 2:23 
GeneralRe: T-SQL Question Pin
Michael Potter11-Aug-05 4:02
Michael Potter11-Aug-05 4:02 
GeneralRe: T-SQL Question Pin
Colin Angus Mackay11-Aug-05 4:06
Colin Angus Mackay11-Aug-05 4:06 
GeneralMultiuser Pin
peepys10-Aug-05 18:06
peepys10-Aug-05 18:06 
GeneralRe: Multiuser Pin
Christian Graus10-Aug-05 18:48
protectorChristian Graus10-Aug-05 18:48 
QuestionHow to Update a row in Datagrid Pin
dwark10610-Aug-05 14:49
dwark10610-Aug-05 14:49 
Generalrestore database command Pin
Anonymous10-Aug-05 10:42
Anonymous10-Aug-05 10:42 
GeneralNew Trigger at run-time Pin
RoyRose7810-Aug-05 9:16
RoyRose7810-Aug-05 9:16 
Hi all,

I'm tryng to create trigger at run time.
I'm using Oracle database.
This is my code:

--------------------------------------------------------------------------------
Dim CmdTmp As OleDbCommand = New OleDbCommand
With CmdTmp
.Connection = oConn
'change_status Trigger
.CommandText = "CREATE TRIGGER change_status AFTER INSERT ON invoices " & _
"REFERENCING NEW AS newRow FOR EACH ROW " & _
"BEGIN update orders set orders.order_status='Close' where orders.orderID = :newRow.orderID; " & _
"END change_status;"
.CommandType = CommandType.Text
Try
.ExecuteNonQuery()
Catch ex As Exception
HasErr = True
Err += ex.Message + Chr(13)
End Try
...
--------------------------------------------------------------------------------
I dont get exceptions but the triggger wasn't created...
does anyone know what is wrong with my code..?

Thank you.
RoyRose

GeneralServer Crash!!!! Pin
Anonymous10-Aug-05 5:56
Anonymous10-Aug-05 5:56 
GeneralError in updating foxpro table.. :-( Pin
Member 185596310-Aug-05 5:08
Member 185596310-Aug-05 5:08 
GeneralRe: Error in updating foxpro table.. :-( Pin
Rob Graham10-Aug-05 5:13
Rob Graham10-Aug-05 5:13 
GeneralRe: Error in updating foxpro table.. :-( Pin
Member 185596310-Aug-05 6:33
Member 185596310-Aug-05 6:33 
Generalstatus design question Pin
deepakt110-Aug-05 2:24
deepakt110-Aug-05 2:24 
GeneralRe: status design question Pin
Colin Angus Mackay10-Aug-05 6:16
Colin Angus Mackay10-Aug-05 6:16 
GeneralRe: status design question Pin
deepakt110-Aug-05 19:21
deepakt110-Aug-05 19:21 
GeneralRe: status design question Pin
Colin Angus Mackay10-Aug-05 22:05
Colin Angus Mackay10-Aug-05 22:05 
Generalthreading issue Pin
Laffis9-Aug-05 23:01
Laffis9-Aug-05 23:01 
GeneralRe: threading issue Pin
Colin Angus Mackay10-Aug-05 6:23
Colin Angus Mackay10-Aug-05 6:23 
GeneralRe: threading issue Pin
Laffis11-Aug-05 3:19
Laffis11-Aug-05 3:19 
GeneralRe: threading issue Pin
ToddHileHoffer12-Aug-05 8:53
ToddHileHoffer12-Aug-05 8:53 
QuestionCan NHibernate call stored procedure? Pin
devvvy9-Aug-05 16:09
devvvy9-Aug-05 16:09 
GeneralReally Relly Stuck!!! Pin
venadder9-Aug-05 9:22
venadder9-Aug-05 9:22 
GeneralRe: Really Relly Stuck!!! Pin
Rob Graham9-Aug-05 12:37
Rob Graham9-Aug-05 12:37 
GeneralRe: Really Relly Stuck!!! Pin
venadder9-Aug-05 13:02
venadder9-Aug-05 13:02 
GeneralRe: Really Relly Stuck!!! Pin
Rob Graham9-Aug-05 13:24
Rob Graham9-Aug-05 13:24 

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.