Skip to content

Commit 7fb1ca4

Browse files
committed
Add SSMS Auto Recovery tip
1 parent ff3cc45 commit 7fb1ca4

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

SSMS/SSMS_Tips.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Most tips works for SSMS higher 2008 but some of them only works for SSMS 2016 a
5454
34. [Using Extended Events and Profiler in SSMS](#34)
5555
35. [Vulnerability Assessment in SSMS](#35)
5656
36. [Import Flat File to SQL Wizard](#36)
57-
37. [Reference](#reference)
57+
37. [AutoRecover in SSMS](#37)
58+
38. [Reference](#reference)
5859

5960

6061
**Great thanks to**:
@@ -81,6 +82,7 @@ Most tips works for SSMS higher 2008 but some of them only works for SSMS 2016 a
8182
- Jen Mccown ([b](http://www.midnightdba.com/Jen/author/jen/))
8283
- Louis Davidson ([b](https://www.red-gate.com/simple-talk/author/louis-davidson/) | [t](https://twitter.com/drsql))
8384
- Solomon Rutzky ([b](https://sqlquantumleap.com) | [t](https://twitter.com/srutzky))
85+
- Michelle Haarhues ([b](https://witsociety.wordpress.com/) | [t](https://twitter.com/mhaarhues))
8486

8587

8688
<a id="1"></a>
@@ -365,15 +367,17 @@ The splitter bar allows you to view one session with two panes. You can scroll i
365367

366368
![Splitting the Query Window](/SSMS/SSMS_Tips/splitting_the_query_window.gif)
367369

368-
Also you can view some very useful features like annotations and Map mode, detailed instruction here: [SSMS Tip #1: Annotations and Map Mode for Vertical Scroll Bar]
370+
Also you can view some very useful features like annotations and Map mode, detailed instruction:
371+
1. [SSMS Tip #1: Annotations and Map Mode for Vertical Scroll Bar]
372+
2. [SQL Server Management Studio Scroll Bar Enhancements](https://witsociety.wordpress.com/2018/12/13/sql-server-management-studio-scroll-bar-enhancements/)
369373

370374
Annotations show the relative position of certain aspects of the script, such as errors, changes, etc.
371375
There are four types of annotations, the first three of which are shown in their own columns on the left side of the scroll bar:
372376

373-
- "Changes" are show in yellow (unsaved) and green (saved). These occupy the left column.
374-
- "Marks" are shown in maroon (Breakpoints) and black (Bookmarks). These occupy the left column.
375-
- "Errors" are shown in red. These occupy the right column.
376-
- "Caret Position" is a thin, blue line going horizontally across the scroll bar. This represents the line of the script that the cursor is on.
377+
- **"Changes"** are show in yellow (unsaved) and green (saved). These occupy the left column.
378+
- **"Marks"** are shown in maroon (Breakpoints) and black (Bookmarks). These occupy the left column.
379+
- **"Errors"** are shown in red. These occupy the right column.
380+
- **"Caret Position"** is a thin, blue line going horizontally across the scroll bar. This represents the line of the script that the cursor is on.
377381

378382

379383
<a id="17"></a>
@@ -749,6 +753,21 @@ For a user without specialized domain knowledge, importing data can often be a c
749753
PROSE analyzes data patterns in your input file to infer column names, types, delimiters, and more. This framework learns the structure of the file and does all of the hard work so our users don't have to.
750754
751755
756+
<a id="37"></a>
757+
## AutoRecover in SSMS
758+
With the default settings, you can lose up to 5 minutes of work on a sudden reboot.
759+
The recovered information will be kept for 7 days so there is some time to get your files.
760+
These settings can be modified, changing how often auto recover happens and how long the information is retained.
761+
It depends on the criticality of things that you work on as to how often you would want AutoRecover to save your scripts.
762+
This feature can be turned off but it is not recommended.
763+
764+
To change the settings, go to: `Tools -> Options -> Environment -> AutoRecover`.
765+
766+
More details [here](https://witsociety.wordpress.com/2019/04/11/autorecover-in-ssms/)
767+
768+
![AutoRecover in SSMS](/SSMS/SSMS_Tips/AutoRecover_in_SSMS.png)
769+
770+
752771
<a id="reference"></a>
753772
Reference:
754773
- [Free Course: SQL Server Management Studio Shortcuts & Secrets](https://sqlworkbooks.com/course/sql-server-management-studio-shortcuts-secrets/) (by Kendra Little)
15.9 KB
Loading

0 commit comments

Comments
 (0)