Click here to Skip to main content
15,891,372 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sequential Dates and Grouping Pin
Michael Potter15-Nov-04 3:33
Michael Potter15-Nov-04 3:33 
GeneralRe: Sequential Dates and Grouping Pin
Peet Schultz15-Nov-04 4:11
Peet Schultz15-Nov-04 4:11 
GeneralRe: Sequential Dates and Grouping Pin
Michael Potter15-Nov-04 8:10
Michael Potter15-Nov-04 8:10 
GeneralGenerate SQL Script ( store procedure problem) Pin
manxx14-Nov-04 8:40
manxx14-Nov-04 8:40 
GeneralView all Tables in database Pin
visitsaadi13-Nov-04 1:33
visitsaadi13-Nov-04 1:33 
GeneralRe: View all Tables in database Pin
Colin Angus Mackay13-Nov-04 1:51
Colin Angus Mackay13-Nov-04 1:51 
QuestionSelect Top 10 from a DataTable ??? Pin
luckyShek12-Nov-04 9:56
luckyShek12-Nov-04 9:56 
GeneralStored Procedures Pin
Anonymous12-Nov-04 6:02
Anonymous12-Nov-04 6:02 
Hi everyone

hope someone can help on a quite simple query. I have a stored procedure that simply returns the row count in a table (code at end of message) and some c# code that says if the row count is greater than 1000 do one thing else do something else (poor pseudocode I know, I apologise).
What I want to do is pass the value from the SP back to the main program. Can it be done?

Hope someone can help,

thanks in advance

Scott



OracleCommand cmdImportCount = new OracleCommand();
cmdImportCount.CommandText = "tv.get_clock_number_import_count";
cmdImportCount.CommandType = CommandType.StoredProcedure;

cmdImportCount.Connection = con;

OracleParameter import_count = new OracleParameter();
import_count = cmdImportCount.Parameters.Add("import_count",OracleType.Number);
import_count.Direction = ParameterDirection.Output;

int import_count_limit = 1000;

int current_total = Convert.ToInt32(cmdImportCount.Parameters["import_count"].Value);
if(current_total < import_count_limit)
{
rest of code
}


PROCEDURE get_clock_number_import_count (import_count OUT NUMBER)
IS
BEGIN
SELECT count(1)
INTO import_count
FROM tv_clock_number_import;
END get_clock_number_import_count;
GeneralRe: Stored Procedures Pin
Colin Angus Mackay12-Nov-04 6:41
Colin Angus Mackay12-Nov-04 6:41 
GeneralRe: Stored Procedures Pin
Anonymous14-Nov-04 22:38
Anonymous14-Nov-04 22:38 
QuestionHow to back up database on remote computer?? Pin
venadder12-Nov-04 5:07
venadder12-Nov-04 5:07 
GeneralConnection String for Connection to OLAP Server Pin
mysorian11-Nov-04 16:50
professionalmysorian11-Nov-04 16:50 
GeneralRe: Connection String for Connection to OLAP Server Pin
David Salter11-Nov-04 23:47
David Salter11-Nov-04 23:47 
GeneralFrom a Blob to some type of image in Java Pin
Red Sunday11-Nov-04 9:39
Red Sunday11-Nov-04 9:39 
GeneralInserting Pin
eggie511-Nov-04 8:45
eggie511-Nov-04 8:45 
GeneralRe: Inserting Pin
Colin Angus Mackay11-Nov-04 9:12
Colin Angus Mackay11-Nov-04 9:12 
GeneralRe: Inserting Pin
eggie511-Nov-04 9:15
eggie511-Nov-04 9:15 
GeneralRe: Inserting Pin
Colin Angus Mackay11-Nov-04 9:27
Colin Angus Mackay11-Nov-04 9:27 
GeneralRe: Inserting Pin
eggie511-Nov-04 9:34
eggie511-Nov-04 9:34 
GeneralRe: Inserting Pin
Colin Angus Mackay11-Nov-04 9:38
Colin Angus Mackay11-Nov-04 9:38 
GeneralRe: Inserting Pin
eggie511-Nov-04 9:42
eggie511-Nov-04 9:42 
GeneralRe: Inserting Pin
Colin Angus Mackay11-Nov-04 9:48
Colin Angus Mackay11-Nov-04 9:48 
GeneralBrowse through list of databases on server Pin
RFickling11-Nov-04 3:58
RFickling11-Nov-04 3:58 
GeneralRe: Browse through list of databases on server Pin
Colin Angus Mackay11-Nov-04 4:23
Colin Angus Mackay11-Nov-04 4:23 
GeneralConnectionString for Server Pin
Vector711-Nov-04 1:36
Vector711-Nov-04 1:36 

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.