Stored Proc problem

  • Thread starter Thread starter J Jones
  • Start date Start date
J

J Jones

I have 400 rows in the TRAIT_NOTES tabel but my sp. returns just 87 records
any idea why that may be?

ALTER PROCEDURE dbo.GetTraits
AS
SELECT
1 AS TAG
,NULL AS PARENT
,NULL AS 'TRAITNOTE!1!'
,NULL AS 'Result!2!CONDITION'
,NULL AS 'Result!2!NOTE'
UNION
SELECT
2
,1
,NULL
,[CONDITION]
,[NOTE]
FROM TRAIT_NOTES
FOR XML EXPLICIT
RETURN 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top