Solved

getting different results

Posted on 2008-10-31
3
286 Views
Last Modified: 2012-05-05
Why  am I getting different results between SQL Server Reporting Services and SQL Server 2005??

for e.g
if i run following quey on the MSSql Server it returns 226, but on the SQL Server Reporting its 402

select sum(Hours) from table1
what would cause to this problem?? service pack or anything
I have checked following items

1. Connection String - check the server, database name, credentials & etc&.
2. Parameter  e.g. the format of the Date parameters& it may pass different date format&
4. Also, you can use the MS SQL server Profiler to side view the query (cross-verify).

Please help??

 
0
Comment
Question by:nadun
  • 2
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22849047
the 2 results must be coming from different tables. you MUST have overlooked a detail.
0
 

Author Comment

by:nadun
ID: 22849095
Nop both refer to same Server --> View, it seems to be problem with the  sum function, when i remove the sum then the results are exactly same  

see attached file
problem.jpg
0
 

Accepted Solution

by:
nadun earned 0 total points
ID: 22849692
I have figured out the problem... thanks a lot for your help
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Update the value of table B with value of table A tables inner join 6 78
IF SQL Query 12 29
Need SSIS project 2 30
Please explain Equi-join 3 15
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

726 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