Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: Change Database Provider at Runtime Post Reply Post New Topic
Author Message
jpavlik
Newbie
Newbie


Joined: 31 Jan 2007
Online Status: Offline
Posts: 3
Quote jpavlik Replybullet Topic: Change Database Provider at Runtime
    Posted: 01 Feb 2007 at 7:41am
I have a report I created with a SQL connection (PULL model).
 
Can I change this at runtime to use the Oracle OLE DB connection?
 
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 01 Feb 2007 at 11:07am
Yes, to change the Crystal Reports data provider at runtime you have to use the ReportDocment object model and change the properties ServerName and DatabaseName to the Oracle database. Unfortunately, I've never used Oracle before so I don't know if there are any special quirks that might trip you up.

Edited by BrianBischof - 01 Feb 2007 at 11:07am
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 01 Feb 2007 at 1:05pm
If you used a Command Text to set the query for the report, you're probably ok.  If you used the Database Expert to select tables and link them, you may have problems due to the table owner being included in the SQL.  Use the Database menu option "Show SQL Query" to take a look at the SQL in your report.  If there is "sa." in front of the table names, just changing the driver will not work because sa is not a valid table owner in Oracle.
 
-Dell
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.031 seconds.