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.