Link to home
Start Free TrialLog in
Avatar of vbnetcoder
vbnetcoder

asked on

leave a 1 blank row if a dataset returns no records

The dataset being used by a particular query make not always return a record. It no records are returned i want a blank row added.  How could i do that?
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

This is not SSRS functionality, it's T-SQL functionality.
Rewrite the Stored Procedure / source SQL in your dataset to ensure that at least one row is returned.

So .. show us the T-SQL that is behind the data set.
Avatar of vbnetcoder
vbnetcoder

ASKER

Can't show you you the actual code by let's say the T-SQL was

SELECT * FROM Employee WHERE Rating = '6'

If that doesn't return anything how would i have it return a empty row?
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Jim - that solved my issue. Thanks.
ty