Click here to Skip to main content
15,886,036 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
Hello,

I have a stored procedure my code must use, however, the stored procedure is lacking "FOR XML AUTO" in its definition. I am not allowed to modify the stored procedure to include it. Is there a way to include "FOR XML AUTO" when setting on the SqlCommand component.?

By the way I am using C# to write my code.
Posted
Comments
Richard C Bishop 16-Aug-13 16:07pm    
Can you not parse the returned data into XML? I can't see how you could add functionality to a stored procedure without altering it.
noobville 16-Aug-13 16:13pm    
The returned data is a integer, but when I run the sp in SQL Server studio I can see the result.
Richard C Bishop 16-Aug-13 16:15pm    
Ok then, can you not then create your own XML with that integer as one of the nodes?
noobville 16-Aug-13 16:17pm    
No, the integer is useless in relation to the data I need. The sp is being used by an old application, but the owners and my boss want to continue using them.
Maciej Los 16-Aug-13 16:08pm    
Sorry, could you be more specific and provide more details?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900