Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: SQL Command - Set Database Location Post Reply Post New Topic
Author Message
aneeshjk
Newbie
Newbie


Joined: 29 Oct 2010
Online Status: Offline
Posts: 4
Quote aneeshjk Replybullet Topic: SQL Command - Set Database Location
    Posted: 29 Oct 2010 at 4:26am
Hi,
 
I got some cyrstal reports where it runs in MS-SQL server, where I want to replicate the same reports in Oracle DB. These reports use Command Object where the SQL queries are embedded. The Reports use OLEDB connection.
                   I have modified these queries in Oracle syntax , tried to update in the 'Set DataSource Location'. I tried to keep the updated queries under 'Add Command' of 'Replace with' section. After which I tried to click the 'Update' Button, the new Oracle connection haven't replaced the existing SQL Server connection.
 
 I don't want to change the structure of the report,  just wanted to change only the data source- from SQL Server to Oracle source. My other concern is - Will the fields that were referred in the Design will be retained once the data source is changed ?
 
Can anyone help me in this how to resolve it?
 
Thanks in advance,
Aneesh
IP IP Logged
aneeshjk
Newbie
Newbie


Joined: 29 Oct 2010
Online Status: Offline
Posts: 4
Quote aneeshjk Replybullet Posted: 31 Oct 2010 at 10:36pm
Appreciate if any of you can help in this issue ?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 01 Dec 2010 at 3:31am
I don't know about Oracle, but when changing  connection, I have found that I need to update the connection AND each table.
 
I am pretty sure that if the fields in the report do not map to fields in the datasource that CR will delete them, pretty much without warning.
 
HTH
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 01 Dec 2010 at 11:54am
I haven't had any problems using Set Location to change the database on commands, but I've always done it using the same type of database - i.e., Oracle to Oracle or MS SQL Server to MS SQL Server. 
 
-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.016 seconds.