Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: change Oracle data source Post Reply Post New Topic
Author Message
happyfirst
Newbie
Newbie


Joined: 25 Jun 2009
Online Status: Offline
Posts: 1
Quote happyfirst Replybullet Topic: change Oracle data source
    Posted: 25 Jun 2009 at 1:49pm
Crystal 2008, Oracle 11g, .net SDK
 
Currently I change my datasource connections by looping through all the report.Database.Tables and applying a new ConnectionInfo object. This works great for reports that JUST use oracle tables.
 
But NOT for reports that call a procedure in a package. Those only work if I save the rpt with the correct datasource location which obvisouly is unacceptable. It sems I'm unable to change the connection info at runtime. I get "Failed to retrieve data from the database. 6550". Or something else is getting set/changed when I save the rpt.
 
After peeking into my report object after I load it, I noticed my report.DataSourceConnections still contains ONE entry for my designtime datasource location even though I called report.DataSourceConnections.Clear(); Interestingly, the report.Database.Tables contains an entry for the procedure name, so I figured I was changing it. After I've looped, that one entry in the report.DataSourceConnections does contain the correct connection info.
 
But the report still won't run....
 
Any ideas?
IP IP Logged
jackjack8899
Newbie
Newbie


Joined: 20 Aug 2009
Online Status: Offline
Posts: 3
Quote jackjack8899 Replybullet Posted: 20 Aug 2009 at 2:14am
i have the same situation with you ... did u solve this problem? can you share the experience with me?
IP IP Logged
ThorBear
Newbie
Newbie
Avatar

Joined: 08 Sep 2009
Location: Sweden
Online Status: Offline
Posts: 2
Quote ThorBear Replybullet Posted: 08 Sep 2009 at 5:24am
I also have the same problem, any help would be much appreciated.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.