tsql - how to find record count mismatch in a stored procedure in sql server 2008 R2? -
2 stored procedures developed .net developers. giving same record counts when pass same parameter?
now due changes , getting mismatch record count i.e
if first stored procedure giving 2 records paramemter , second sp giving 1 record.
to find followed approach verified
- i counted total records of table after joining
- total tables used in joining 3.distinct / group used in 2 tables or not?
finally not able find issue.
how fix it?
could body share ideas.
thanks in advance?
assuming same joins , filters, problem nulls.
that is, either
- a clause has direct null comparison fail
- a count on nullable column. see count(*) vs count(1) more
either way, why have same similar stored procedures written 2 different developers, appear have differences?
Comments
Post a Comment