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?
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?
SELECT * FROM Employee WHERE Rating = '6'
If that doesn't return anything how would i have it return a empty row?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Jim - that solved my issue. Thanks.
ASKER
ty
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.