Click here to Skip to main content
15,915,797 members
Home / Discussions / C#
   

C#

 
AnswerRe: handled files Pin
stancrm1-Apr-09 0:34
stancrm1-Apr-09 0:34 
GeneralRe: handled files Pin
lost_in_code1-Apr-09 0:39
lost_in_code1-Apr-09 0:39 
AnswerRe: handled files Pin
0x3c01-Apr-09 0:44
0x3c01-Apr-09 0:44 
GeneralRe: handled files Pin
lost_in_code1-Apr-09 0:58
lost_in_code1-Apr-09 0:58 
QuestionDataGridView.RowFilter question Pin
kanchoette31-Mar-09 23:51
kanchoette31-Mar-09 23:51 
AnswerRe: DataGridView.RowFilter question Pin
Eddy Vluggen31-Mar-09 23:59
professionalEddy Vluggen31-Mar-09 23:59 
AnswerRe: DataGridView.RowFilter question Pin
vinodkrebc1-Apr-09 1:24
vinodkrebc1-Apr-09 1:24 
QuestionExecuting PL/Sql Anonymous block from ADO Pin
Muammar©31-Mar-09 23:27
Muammar©31-Mar-09 23:27 
Hi everyone,
My question is simply about how to execute such an anonymous pl/sql block from ado, the below example works fine if pasted in my Oracle Sql*Plus terminal but not from my application, what's more, if I made it simple like just CREATE SEQUENCE MY_SEQUENCE it would work but as you can see, my script is a bit more complicated than that and I dont know how to make ado do it for me like it's being executed directly at the database terminal..

Please advise...

string strSEQ = 
@"DECLARE
N NUMBER(10);
BEGIN
    SELECT MAX(ID)+1 INTO N FROM MY_TABLE;
-- CREATING SEQUENCE
Execute immediate ('CREATE SEQUENCE SEQ_TEMP
    MINVALUE 1
    START WITH '||N||'
    INCREMENT BY 1
    CACHE 20
    ORDER');
END;
/
"


OracleCommand cmd = new OracleCommand(String.Empty, _connection);

//CREATING SEQUENCE
cmd.CommandText = strSEQ;
cmd.ExecuteNonQuery();


Internal .Net Framework Data Provider error 30.



All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)

AnswerRe: Executing PL/Sql Anonymous block from ADO Pin
Muammar©1-Apr-09 2:46
Muammar©1-Apr-09 2:46 
QuestionHow to lock the adjustment of column runtime. Pin
saksp31-Mar-09 23:14
saksp31-Mar-09 23:14 
AnswerRe: How to lock the adjustment of column runtime. Pin
Eddy Vluggen1-Apr-09 0:21
professionalEddy Vluggen1-Apr-09 0:21 
AnswerRe: How to lock the adjustment of column runtime. Pin
vinodkrebc1-Apr-09 1:26
vinodkrebc1-Apr-09 1:26 
Questionis sending data over a same socket possible Pin
Mubeen.asim31-Mar-09 23:10
Mubeen.asim31-Mar-09 23:10 
AnswerRe: is sending data over a same socket possible Pin
stancrm31-Mar-09 23:13
stancrm31-Mar-09 23:13 
GeneralRe: is sending data over a same socket possible Pin
Mubeen.asim31-Mar-09 23:33
Mubeen.asim31-Mar-09 23:33 
QuestionDirectory.Exist Pin
yesu prakash31-Mar-09 22:55
yesu prakash31-Mar-09 22:55 
AnswerRe: Directory.Exist Pin
Tom Deketelaere31-Mar-09 23:33
professionalTom Deketelaere31-Mar-09 23:33 
AnswerRe: Directory.Exist Pin
0x3c01-Apr-09 0:53
0x3c01-Apr-09 0:53 
QuestionWhat exceptions cannot be caught by try-catch block? Pin
devvvy31-Mar-09 22:04
devvvy31-Mar-09 22:04 
AnswerRe: What exceptions cannot be caught by try-catch block? Pin
Pete O'Hanlon31-Mar-09 22:25
mvePete O'Hanlon31-Mar-09 22:25 
GeneralRe: What exceptions cannot be caught by try-catch block? Pin
moon_stick31-Mar-09 22:58
moon_stick31-Mar-09 22:58 
GeneralRe: What exceptions cannot be caught by try-catch block? [modified] Pin
devvvy31-Mar-09 23:05
devvvy31-Mar-09 23:05 
GeneralRe: What exceptions cannot be caught by try-catch block? Pin
moon_stick31-Mar-09 23:35
moon_stick31-Mar-09 23:35 
GeneralRe: What exceptions cannot be caught by try-catch block? Pin
devvvy1-Apr-09 0:13
devvvy1-Apr-09 0:13 
GeneralRe: What exceptions cannot be caught by try-catch block? Pin
devvvy1-Apr-09 0:38
devvvy1-Apr-09 0:38 

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.