Hi all, I have a SQL database with a field (job number) which is created as a char 5. I want to use it in Crystal reports as a number. So in my stored procedure I did a cast as Numeric
(CAST(joblist.job AS numeric) as job ,
I also set the parameter as follows
CREATE PROCEDURE XXX
@nJobNumber numeric = 0
as
SELECT
Then the where clause
WHERE joblist.job = @nJobNumber
Due to the nature of the database, I have about 7 unioned selects, all the same setup on job number. But I get an error when trying to run the report in Crystal. It's a SQL database error. I am rather new at this and would appreciate some advice. Do I also need to cast the where clause?
Appreciate the help!
(CAST(joblist.job AS numeric) as job ,
I also set the parameter as follows
CREATE PROCEDURE XXX
@nJobNumber numeric = 0
as
SELECT
Then the where clause
WHERE joblist.job = @nJobNumber
Due to the nature of the database, I have about 7 unioned selects, all the same setup on job number. But I get an error when trying to run the report in Crystal. It's a SQL database error. I am rather new at this and would appreciate some advice. Do I also need to cast the where clause?
Appreciate the help!