T
teewebco
Hello,
Im going insane with this problem. I have a stored proc that returns 2
recordsets to a dataset. In the dataset i reference the recordsets by
their tables like below.
ds.tables[0]
ds.tables[1]
In the first table it says their are 0 rows. The columns get populated
but no rows. I run the proc outside VS and the results are correct. In
the datase i can reference the second table and pull the rows i need.
For what ever reason the first dataset is always empty. I have used
this methods before and works great but for some reason it doesnt like
the first recordset.
In my proc I have 'set nocount on'
code below.
Here is a run down of the proc.....
Query 1:
SELECT a.first_name ,a.last_name, upa.organization_id, b.index_code as
EmployeeID
FROM person_name a, person_indices b, v_user_profile_app upa
WHERE a.person_nbr = b.person_nbr
AND b.index_code = (SELECT c.code_nbr
FROM v_code_entries c
WHERE c.table_code = "INDXTP"
AND c.code = "EMPNUM")
Query 2:
Select RoleName FROM UserRoles WHERE person_nber=@person_nbr
Im going insane with this problem. I have a stored proc that returns 2
recordsets to a dataset. In the dataset i reference the recordsets by
their tables like below.
ds.tables[0]
ds.tables[1]
In the first table it says their are 0 rows. The columns get populated
but no rows. I run the proc outside VS and the results are correct. In
the datase i can reference the second table and pull the rows i need.
For what ever reason the first dataset is always empty. I have used
this methods before and works great but for some reason it doesnt like
the first recordset.
In my proc I have 'set nocount on'
code below.
Here is a run down of the proc.....
Query 1:
SELECT a.first_name ,a.last_name, upa.organization_id, b.index_code as
EmployeeID
FROM person_name a, person_indices b, v_user_profile_app upa
WHERE a.person_nbr = b.person_nbr
AND b.index_code = (SELECT c.code_nbr
FROM v_code_entries c
WHERE c.table_code = "INDXTP"
AND c.code = "EMPNUM")
Query 2:
Select RoleName FROM UserRoles WHERE person_nber=@person_nbr