Click here to Skip to main content
15,797,925 members
Home / Discussions / Database
   

Database

 
GeneralRe: Free "ORM" Application Pin
Rajesh Anuhya4-Nov-10 1:06
professionalRajesh Anuhya4-Nov-10 1:06 
GeneralRe: Free "ORM" Application Pin
baymyo4-Nov-10 3:15
baymyo4-Nov-10 3:15 
GeneralRe: Free "ORM" Application Pin
Chris Meech4-Nov-10 3:39
Chris Meech4-Nov-10 3:39 
GeneralRe: Free "ORM" Application Pin
Simon_Whale4-Nov-10 3:46
Simon_Whale4-Nov-10 3:46 
GeneralRe: Free "ORM" Application Pin
Mycroft Holmes4-Nov-10 4:29
professionalMycroft Holmes4-Nov-10 4:29 
GeneralRe: Free "ORM" Application Pin
baymyo4-Nov-10 5:05
baymyo4-Nov-10 5:05 
GeneralRe: Free "ORM" Application Pin
scottgp4-Nov-10 5:40
professionalscottgp4-Nov-10 5:40 
QuestionOracleCommandBuilder.DeriveParameters doesn't return parameters every time Pin
Tesic Goran3-Nov-10 2:18
professionalTesic Goran3-Nov-10 2:18 
Hello,

I use Microsoft's Oracle client provider.

I have 2 Oracle stored procedures that do the same thing and have only different names:

SP1:

create or replace procedure GetScalar(last_name IN PERSON.LastName%TYPE, row_count OUT INTEGER)
as
begin
SELECT COUNT(*) INTO row_count FROM PERSON
WHERE LASTNAME = last_name;
end GetScalar;

SP2:

create or replace procedure Get_Bool(last_name IN PERSON.LastName%TYPE, r_count OUT INTEGER)
as
begin
SELECT COUNT(*) INTO r_count FROM PERSON
WHERE LASTNAME = last_name;
end Get_Bool;

I use the same C# code for both.

When I use stored procedure SP1 after this code was called:

OracleCommandBuilder.DeriveParameters(objCmd);
int n = objCmd.Parameters.Count;

n is 2, which is ok.

But, when I use stored procedure SP2:

n is 0, which is not ok.

What should I do yo make it work?

When I call both store procedures inside Oracle enviroment both work fine.
AnswerRe: OracleCommandBuilder.DeriveParameters doesn't return parameters every time Pin
jschell4-Nov-10 9:46
jschell4-Nov-10 9:46 
AnswerRe: OracleCommandBuilder.DeriveParameters doesn't return parameters every time Pin
PIEBALDconsult7-Nov-10 8:51
professionalPIEBALDconsult7-Nov-10 8:51 
Questionsql Pin
jeyaranjani2-Nov-10 22:32
jeyaranjani2-Nov-10 22:32 
AnswerRe: sql Pin
R. Giskard Reventlov2-Nov-10 23:29
R. Giskard Reventlov2-Nov-10 23:29 
AnswerRe: sql Pin
Luc Pattyn3-Nov-10 7:36
sitebuilderLuc Pattyn3-Nov-10 7:36 
GeneralRe: sql Pin
R. Giskard Reventlov3-Nov-10 7:40
R. Giskard Reventlov3-Nov-10 7:40 
GeneralRe: sql Pin
Rajesh Anuhya4-Nov-10 1:04
professionalRajesh Anuhya4-Nov-10 1:04 
AnswerRe: sql Pin
Jörgen Andersson2-Nov-10 23:35
professionalJörgen Andersson2-Nov-10 23:35 
JokeRe: sql Pin
Gerben Jongerius3-Nov-10 0:15
Gerben Jongerius3-Nov-10 0:15 
AnswerRe: sql Pin
J4amieC3-Nov-10 3:40
J4amieC3-Nov-10 3:40 
AnswerRe: sql Pin
RaviRanjanKr3-Nov-10 18:22
professionalRaviRanjanKr3-Nov-10 18:22 
GeneralRe: sql Pin
Gerben Jongerius3-Nov-10 22:39
Gerben Jongerius3-Nov-10 22:39 
GeneralRe: sql Pin
RaviRanjanKr4-Nov-10 9:19
professionalRaviRanjanKr4-Nov-10 9:19 
AnswerRe: sql Pin
RaviRanjanKr16-Dec-10 4:46
professionalRaviRanjanKr16-Dec-10 4:46 
QuestionMigrating from Oracle to SQL Pin
Arudya2-Nov-10 20:57
Arudya2-Nov-10 20:57 
AnswerRe: Migrating from Oracle to SQL Pin
jschell4-Nov-10 9:57
jschell4-Nov-10 9:57 
QuestionDatetime format checking in SQL server stored procedure Pin
Danpeking2-Nov-10 5:54
Danpeking2-Nov-10 5:54 

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.