dbTalk Databases Forums  

Different results from stored Proc when run from differentprograms.

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Different results from stored Proc when run from differentprograms. in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steven Howes
 
Posts: n/a

Default Different results from stored Proc when run from differentprograms. - 05-24-2005 , 12:01 PM






Hi Everyone, I'm in the middle of debugging a VB app that calls a stored proc. The stored Proc checks tables and under certain conditions copies records to another table. Depending on where I run the stored Proc from I get a different number of records copied.

VB - 0 records Copied.
Toad - 6 records copied.
SQL navigator - 0 records copied.
SQL Worksheet 6 records copied.

I've checked the data and the code and the correct answer is 6. Anyone have any ideas why this would happen?

Steve.


Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: Different results from stored Proc when run from different programs. - 05-24-2005 , 12:23 PM






Steven Howes wrote:
Quote:
Hi Everyone, I'm in the middle of debugging a VB app that calls a stored proc. The stored Proc checks tables and under certain conditions copies records to another table. Depending on where I run the stored Proc from I get a different number of records copied.

VB - 0 records Copied.
Toad - 6 records copied.
SQL navigator - 0 records copied.
SQL Worksheet 6 records copied.

I've checked the data and the code and the correct answer is 6. Anyone have any ideas why this would happen?

Steve.
None. Nor is any help possible given what little you've told us.
My guess ... the userid for Toad and SQL Worksheet is different
than what is being used with SQL Navigator and VB.
--
Daniel A. Morgan
Relational theory is not something that is simply a nice-to-have.
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)


Reply With Quote
  #3  
Old   
JimStrehlow@data911.com
 
Posts: n/a

Default Re: Different results from stored Proc when run from different programs. - 05-24-2005 , 01:18 PM



select OWNER, TABLE_NAME from SYS.ALL_TABLES where TABLE_NAME = 'X';

You may have the same table_name with different owners.
Depending upon how someone connects to the database, they gain access
to one or the other table.

See if there is an Oracle synonym set for your table:

SELECT OWNER, TABLE_OWNER, TABLE_NAME FROM SYS.ALL_SYNONYMS WHERE
TABLE_NAME='X';


Jim Strehlow, Data911 Oracle DBA, Alameda, CA, USA


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.