Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: SQL Command Convert Text To Number Post Reply Post New Topic
Author Message
mrc161
Newbie
Newbie


Joined: 27 Dec 2007
Location: United States
Online Status: Offline
Posts: 19
Quote mrc161 Replybullet Topic: SQL Command Convert Text To Number
    Posted: 05 Mar 2009 at 10:54am
Hello.
 
I have an issue where I need to link two tables from two different datasources - the problem is, the Account ID in one datasource is type String, while in the other it is type Number.
 
I've played around with commands, but I can't get the String to convert to Number.
 
Another problem is that the Account ID is really made up of two fields in one database, while they combined them in the other.
 
As an example, in database A, the Account ID is a String, and Field 1 = 123456789.
 
But in database B, the Account ID is a Number, and Field 1 = 12345, and Field 2 is 6789.
 
Any idea on how I can get these to link.  I've been mildly successful converting the Number to String, but I'd prefer to convert the String to Number.
 
Another problem I have (and please understand I've done some minimal stuff with Commands but am by no means an expert) - whenever I create the Commands to be able to link these tables, my report will run REALLY, REALLY slow.  Any suggestions?
 
Any ideas on any of these issues would be appreciated!  Thanks, Mike
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 09 Mar 2009 at 11:39am
AFAIK, the only way to do this is through a command.  I would work on the SQL outside of Crystal to tune it and make it as efficient as possible.  Get someone who knows SQL to help you with it.  If you don't have anyone on your team who can help, I may be able to if you post the table names and how they're linked.  You'll probably also want to do your filtering by using parameters in the command - this would speed things up because the database will be doing the filtering work instead of Crystal.
 
-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.