Click here to Skip to main content
15,883,783 members
Home / Discussions / Database
   

Database

 
GeneralRe: Trim Function Pin
GuyThiebaut15-Dec-07 11:24
professionalGuyThiebaut15-Dec-07 11:24 
GeneralTransferText and FileStream Incompatibility... [modified] Pin
new_phoenix14-Dec-07 6:28
new_phoenix14-Dec-07 6:28 
GeneralGetting RANDOM records from MS Access Pin
Nadia Monalisa14-Dec-07 6:15
Nadia Monalisa14-Dec-07 6:15 
GeneralRe: Getting RANDOM records from MS Access Pin
pmarfleet14-Dec-07 9:26
pmarfleet14-Dec-07 9:26 
GeneralMysql dateadd query problem Pin
archangel71714-Dec-07 5:11
archangel71714-Dec-07 5:11 
GeneralRe: Mysql dateadd query problem Pin
Mike Dimmick14-Dec-07 13:09
Mike Dimmick14-Dec-07 13:09 
GeneralRe: Mysql dateadd query problem Pin
archangel71715-Dec-07 12:28
archangel71715-Dec-07 12:28 
GeneralSELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 0:43
Mel Padden14-Dec-07 0:43 
Hi all. I'm getting a strange error against an Oracle 9i database. I have a stored proc and one of the cursors I'm using has the following SELECT;

<br />
	SELECT ref_no_rev, ref_no FROM<br />
         (<br />
            SELECT REVERSE(ref_no) AS ref_no_rev, ref_no<br />
            FROM (<br />
                  SELECT DISTINCT ref_no<br />
                               FROM itm_table<br />
                              WHERE ref_no IS NOT NULL)<br />
         )<br />
         ORDER BY <br />
         	ref_no_rev<br />


And when I execute it directly against the database from the TOAD editor, it works fine and returns what I want. But when I try to access the cursor in code like so;
<br />
OPEN cur_ref_nos_with_rev;<br />
FETCH cur_ref_nos_with_rev BULK COLLECT INTO col_ref_nos_with_rev;


If falls over on the FETCH, giving me ORA-01001 - Invalid Cursor.

Anybody have any ideas?
Smokie, this is not 'Nam. This is bowling. There are rules.

GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 3:38
Paddy Boyd14-Dec-07 3:38 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 3:51
Mel Padden14-Dec-07 3:51 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Mel Padden14-Dec-07 4:10
Mel Padden14-Dec-07 4:10 
GeneralRe: SELECT works fine when I execute directly but fails in stored proc Pin
Paddy Boyd14-Dec-07 4:12
Paddy Boyd14-Dec-07 4:12 
QuestionQuery Issue Pin
rockz...13-Dec-07 23:03
rockz...13-Dec-07 23:03 
GeneralRe: Query Issue Pin
Colin Angus Mackay13-Dec-07 23:14
Colin Angus Mackay13-Dec-07 23:14 
Generalimport xls to sqlserver table Pin
sivaram praveen13-Dec-07 19:49
sivaram praveen13-Dec-07 19:49 
GeneralRe: import xls to sqlserver table Pin
pmarfleet13-Dec-07 21:42
pmarfleet13-Dec-07 21:42 
GeneralImporting NULLs Instead of Actual Values Pin
Bryan Bradford13-Dec-07 9:58
Bryan Bradford13-Dec-07 9:58 
GeneralRe: Importing NULLs Instead of Actual Values Pin
pmarfleet13-Dec-07 11:29
pmarfleet13-Dec-07 11:29 
GeneralRe: Importing NULLs Instead of Actual Values Pin
Bryan Bradford14-Dec-07 10:28
Bryan Bradford14-Dec-07 10:28 
GeneralDatabase redesign advice, please. Pin
jimbaloo13-Dec-07 5:59
jimbaloo13-Dec-07 5:59 
GeneralRe: Database redesign advice, please. Pin
Mark Churchill15-Dec-07 18:27
Mark Churchill15-Dec-07 18:27 
GeneralRe: Database redesign advice, please. Pin
jimbaloo17-Dec-07 2:20
jimbaloo17-Dec-07 2:20 
GeneralRe: Database redesign advice, please. Pin
Mark Churchill17-Dec-07 3:30
Mark Churchill17-Dec-07 3:30 
GeneralLinking databases across servers Pin
Leo Smith13-Dec-07 4:39
Leo Smith13-Dec-07 4:39 
GeneralReporting Services reports: Display problem in Firefox Pin
Ziggy98112-Dec-07 23:16
Ziggy98112-Dec-07 23:16 

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.