Click here to Skip to main content
16,006,452 members
Home / Discussions / Database
   

Database

 
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 
GeneralRe: Stored Procedures Pin
Colin Angus Mackay12-Nov-04 6:41
Colin Angus Mackay12-Nov-04 6:41 
First a disclaimer: I've never used Oracle.

One possiblility is make your query something like
SELECT count(*) FROM ...
and removing the output parameter. [see footnote]
Then in the .NET Application you can use OracleCommand.ExecuteScalar()[^] method to get the value back.

By the way, to do know that the code you supplied doesn't actually run the query, it just sets it up. So... anyway... you would change the line that start int current_total = to read
int current_total = (int)cmdImportCount.ExecuteScalar();
and remove the references in your code to the parameters.

Does this help?


Footnote: I don't know what the count(1) does in Oracle, so I'm presuming that it does the same thing as count(*) in SQL Server


Do you want to know more?


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 
GeneralRe: ConnectionString for Server Pin
Daniel Turini11-Nov-04 1:59
Daniel Turini11-Nov-04 1:59 

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.