Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing to Output Pane in VS.NET 1

Status
Not open for further replies.

Terwin

Programmer
May 23, 2002
51
0
0
US
Ladies and Gents,

I am something of a VS.NET newbie, and I've been trying to navigate the labyrinth of the VS docs to no avail - so here's my question:

I have a routine that converts SqlCommand objects to DataSet objects, and I would like to write the text of the SQL query associated with the command to the VS Output Pane during debugging. How can this be accomplished? I would settle to being able to log the queries to a file, as well.

Am I better off trying to use the Query Analyzer?

Many thanks in advance for your suggestions.

Terwin
 
Console.WriteLine() will send it to the "Output Window" of a windows application. Not so useful if you have a commandline app.

Probably Chip's idea of Debug.WriteLine() is good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top