Solved

getting different results

Posted on 2008-10-31
3
285 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

828 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