Solved

Stored Procedure passed to Crystal is rounding decimal places

Posted on 2014-03-06
3
339 Views
Last Modified: 2014-03-08
I have a stored procedure.  When I run it on SQL server I see all 5 decimal places.  However, when I bring the data from this stored procedure into my crystal report, the data is being rounded to 2 decimal places.  I have formatted the field on the report to show 4 decimal places, but all I see is the rounded number.  Any idea on how to see 4 decimal places on my report?
0
Comment
Question by:maverick0728
  • 2
3 Comments
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 39910758
Are you using any kind of conditional formatting on the field?  There's an issue in Crystal Reports where the default number of decimals (typically 2) supercedes conditional formatting for the number of decimal places.  I ran into this when I was trying to conditionally show 4 decimals for some records and 2 for others.  I had to first set the default number of places to 4 then conditionally change the value based on my business rules.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39910995
Do you also have the rounding set to 4 decimals?

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39914869
Rhinok also made that suggestion.  You should have accepted his comment as the answer
I can reopen the question so you can change the answer you acceted
p
mlmcc
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virtual SQL Server 2014 Standard 35 94
TSQL XML Namespaces 7 24
SQL USE DATABASE VARIABLE 5 30
sql 2016 data tools breakdown.. 1 15
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question