1

I want to store SQL Query Message into the File.

For Example: This is my query

Select Getdate() 

The Result is:

2016-07-15 18:12:24.007  

and the message is:

(1 row(s) affected)

I Want to store the message into file with extension.log

OR

How can I store Print Statement result in file. This will be helpful

Can anyone help me out this.

2

1 Answer 1

1

In SQL Enterprise Manager, right click the T-SQL query window, select Results To then click Results to File.

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

1 Comment

Yes, but this is to store query result not message. I want to store only message.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.