Today I am going to share one of the interesting options of SQL Server Management studio which may be unknown to most of us.
Now you are thinking what it is? So the cool feature is you can
run DOS command in your SQL Server Management studio
I know your next question is how?
My answer is just follow below step
Go To Tool –> Option
After option window open you need to select Query Execution tree and Select checkbox for
“By default, Open new queries in SQLCMD Mode”
Now open new Query window and write following command
!! Dir C:\
And hit F5
You will find below in the query result you have directory & files of your current C drive.
Just check below fig to understand.
In this way you can run various DOS commands.
!! Dir C:\New Folder
Isn’t it cool feature.
I hope you enjoyed it.
Keep Learning, Keep Sharing