Click here to Skip to main content
15,919,178 members
Home / Discussions / Database
   

Database

 
AnswerRe: delete query in sql Pin
Rob Graham1-Feb-09 5:47
Rob Graham1-Feb-09 5:47 
GeneralRe: delete query in sql Pin
Wendelius1-Feb-09 8:27
mentorWendelius1-Feb-09 8:27 
QuestionOutputDebugString / Trace in SQL Pin
Green Fuze31-Jan-09 10:31
Green Fuze31-Jan-09 10:31 
AnswerRe: OutputDebugString / Trace in SQL Pin
Wendelius31-Jan-09 10:36
mentorWendelius31-Jan-09 10:36 
GeneralRe: OutputDebugString / Trace in SQL Pin
Green Fuze31-Jan-09 10:40
Green Fuze31-Jan-09 10:40 
GeneralRe: OutputDebugString / Trace in SQL Pin
Wendelius31-Jan-09 10:51
mentorWendelius31-Jan-09 10:51 
GeneralRe: OutputDebugString / Trace in SQL Pin
Green Fuze31-Jan-09 10:58
Green Fuze31-Jan-09 10:58 
GeneralRe: OutputDebugString / Trace in SQL [modified] Pin
Wendelius31-Jan-09 11:12
mentorWendelius31-Jan-09 11:12 
Okay, if you use PRINT in the stored procedure and execute the procedure in Management Studio, the output will come to the message window in Management Studio.

When you're executing an application which then calls a stored procedure, AFAIK there's no way to print any messages to a Management Studio window.

However, if you're using SqlConnection in the application, you can wire InfoMessage[^] event. Whatever you print in the procedure will come to this event and you can redirect it to the place you want.

Was this what you we're after?

If you want the output to the server side where SQL Server is running, you can:
- write the message to a table
- write it to the sqlserver log file
- write it to some other file
- send it using mail
- create a notification

The need to optimize rises from a bad design.My articles[^]

modified on Saturday, January 31, 2009 5:36 PM

GeneralRe: OutputDebugString / Trace in SQL Pin
Green Fuze31-Jan-09 21:43
Green Fuze31-Jan-09 21:43 
GeneralRe: OutputDebugString / Trace in SQL Pin
Wendelius1-Feb-09 7:05
mentorWendelius1-Feb-09 7:05 
GeneralRe: OutputDebugString / Trace in SQL Pin
Mycroft Holmes1-Feb-09 14:23
professionalMycroft Holmes1-Feb-09 14:23 
GeneralRe: OutputDebugString / Trace in SQL Pin
Wendelius1-Feb-09 18:11
mentorWendelius1-Feb-09 18:11 
GeneralRe: OutputDebugString / Trace in SQL Pin
Mycroft Holmes1-Feb-09 18:14
professionalMycroft Holmes1-Feb-09 18:14 
GeneralRe: OutputDebugString / Trace in SQL Pin
Wendelius1-Feb-09 18:36
mentorWendelius1-Feb-09 18:36 
Questionspeed up read and write on access table with ado [modified] Pin
sal2131-Jan-09 7:39
sal2131-Jan-09 7:39 
AnswerRe: speed up read and write on access table with ado Pin
Wendelius31-Jan-09 8:15
mentorWendelius31-Jan-09 8:15 
AnswerRe: speed up read and write on access table with ado Pin
Rob Graham1-Feb-09 5:55
Rob Graham1-Feb-09 5:55 
QuestionReport Builder - Reporting Services 2005 Pin
cbe_pav31-Jan-09 2:03
cbe_pav31-Jan-09 2:03 
QuestionDamn database wizard! Pin
Muammar©31-Jan-09 1:52
Muammar©31-Jan-09 1:52 
AnswerRe: Damn database wizard! Pin
Wendelius31-Jan-09 2:55
mentorWendelius31-Jan-09 2:55 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 5:57
Muammar©31-Jan-09 5:57 
GeneralRe: Damn database wizard! Pin
Wendelius31-Jan-09 6:09
mentorWendelius31-Jan-09 6:09 
GeneralRe: Damn database wizard! Pin
Muammar©31-Jan-09 20:02
Muammar©31-Jan-09 20:02 
GeneralRe: Damn database wizard! Pin
Wendelius1-Feb-09 7:10
mentorWendelius1-Feb-09 7:10 
GeneralRe: Damn database wizard! Pin
Muammar©7-Feb-09 4:15
Muammar©7-Feb-09 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.