2

I have a simple question.

I need to return results as simple text, either as a string or similar.

i.e. I want the same behavior such as

Results to Text (Cntrl + T)

When you run a Query from SQL Server Management Studio.

How can this be done programmatically against calling a Stored Proc from C#?

i.e. similar to ExecuteReader(); or ExecuteXMLReader(); but returning a string instead.

Is there some ToString() available?

Thanks, Kai.

1 Answer 1

0

No, you will have to build the sting yourself by reading from dbreader.

Sign up to request clarification or add additional context in comments.

2 Comments

What do you mean by "dbreader"? I looked in system.data.sqlclient and system.data.common namespaces but couldn't find anything. Thanks!
i meant System.Data.Common.DbDataReader which is base of all DataReaders(sql, oracle, etc) in .Net

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.