Advertisement

01.30.2008 at 08:31AM PST, ID: 23123227
[x]
Attachment Details

Creating temp tables from C# application and then using them

Asked by sfarley in .Net Editors & IDEs, Oracle Database

Tags: C# and Oracle

Because of the constraints with the size VARCHAR and the number of elements allowed in a WHERE IN clause, I need to create a temp_table that I insert ids into and then within my stored procedure select from that temp_table. Currently, my stored procedure sends in an associative array of the ids, inserts the ids into a global temp table and then SELECT * FROM prod_table WHERE prod_ids IN (SELECT prod_ids FROM temp_table). I guess my question is, if I create the temp_table from within my application, will the select from the stored procedure still work? Will it still be the same "session" or whatever as long as I use the same connection? How do I create a temp table from within my C# application? Unfortunately, I have to get rid of the associate array because of an Oracle bug.Start Free Trial
 
Loading Advertisement...
 
[+][-]01.30.2008 at 08:38AM PST, ID: 20778453

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Oracle Database
Tags: C# and Oracle
Sign Up Now!
Solution Provided By: asvforce
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.30.2008 at 08:53AM PST, ID: 20778623

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628