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
toekneel
Newbie
Newbie


Joined: 25 Apr 2008
Location: United States
Online Status: Offline
Posts: 6
Quote toekneel Replybullet Topic: SQL Command - Set Database Location
    Posted: 02 Jul 2010 at 5:20am
I've built a group of Crystal Reports using SQL Commands - first time I've done this and was happy with the performance results.
 
Problem is, this was for a test database.  I want to move these to a production database, and need to know how to set my new database connection.  I've tried the usual "Database" "Set Datasource Location" but that doesn't work with Commands. 
 
Is there any easy of of handling this without having to rebuild the entire report?
toekneel
ABQ, NM
IP IP Logged
toekneel
Newbie
Newbie


Joined: 25 Apr 2008
Location: United States
Online Status: Offline
Posts: 6
Quote toekneel Replybullet Posted: 02 Jul 2010 at 7:15am

The majority of reports had a command such as this, which failed:

 

SELECT "tblEPOnames"."strFirstName", "tblEPOnames"."strLastName", "tblEPOnames"."strUserID"

 FROM   "sjreportingprd"."dbo"."tblEPOnames" "tblEPOnames"

  

The other report had a command such as this, which succeeded:

 

SELECT tblEPOnames.lngEmployeeID, tblEPOnames.strLastName, tblEPOnames.strFirstName, tblEPOnames.strUserID, tblEPOnames.strDept,  tblEPOnames.strShift

FROM dbo.tblEPOnames

 

By resetting all of the commands to this syntax I was able to get it to work.

toekneel
ABQ, NM
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.015 seconds.