\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{putrilarasati} \pdfinfo{ /Title (mabd.pdf) /Creator (Cheatography) /Author (putrilarasati) /Subject (MABD Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{887AA3} \definecolor{LightBackground}{HTML}{F7F6F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{MABD Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{putrilarasati} via \textcolor{DarkBackground}{\uline{cheatography.com/20705/cs/3457/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}putrilarasati \\ \uline{cheatography.com/putrilarasati} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 2nd March, 2015.\\ Updated 13th May, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Auto Options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pilihan otomatis \newline % Row Count 1 (+ 1) AUTO\_CLOSE \newline % Row Count 2 (+ 1) AUTO\_CREATE\_STATISTICS \newline % Row Count 3 (+ 1) AUTO\_SHRINK \newline % Row Count 4 (+ 1) AUTO\_UPDATE\_STATISTICS \newline % Row Count 5 (+ 1) \seqsplit{AUTO\_UPDATE\_STATISTICS\_ASYNC}% Row Count 6 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Containtment Options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pilihan pembatasan basis data. \newline % Row Count 1 (+ 1) CONTAINMENT = \{ NONE | PARTIAL\}% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Service broker option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol mengikuti Pilihan layanan Broker: mengaktifkan atau menonaktifkan pengiriman pesan, menetapkan pengenal Layanan Broker baru, atau menetapkan prioritas percakapan ke ON atau OFF.% Row Count 4 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Parameterization option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol parameterization option. \newline % Row Count 1 (+ 1) PARAMETERIZATION \{ SIMPLE | FORCED \}% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Db Update Options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol apakah update diperbolehkan di database \newline % Row Count 2 (+ 2) READ\_ONLY ::: User dapat membaca tetapi tidak bisa mengubah database \newline % Row Count 4 (+ 2) READ\_WRITE ::: User dapat membaca dan mengubah% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{db user access options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol akses pengguna ke database. \newline % Row Count 1 (+ 1) SINGLE\_USER ::: Menentukan bahwa hanya satu pengguna pada satu waktu dapat mengakses database. \newline % Row Count 3 (+ 2) RESTRICTED\_USER ::: Memungkinkan hanya anggota db\_owner peran tetap database dan dbcreator dan sysadmin server tetap peran untuk koneksi ke database, tetapi tidak membatasi jumlah mereka. \newline % Row Count 7 (+ 4) MULTI\_USER ::: Semua pengguna yang memiliki izin yang sesuai untuk koneksi ke database diperbolehkan.% Row Count 10 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Filestream Option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pengaturan Filetables \newline % Row Count 1 (+ 1) NON\_TRANSACTED\_ACCESS = \{ OFF | READ\_ONLY | FULL \} \newline % Row Count 3 (+ 2) DIRECTORY\_NAME = \textless{}directory\_name\textgreater{}% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Change Tracking Options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pilihan perubahan \newline % Row Count 1 (+ 1) AUTO\_CLEANUP \newline % Row Count 2 (+ 1) CHANGE\_RETENTION% Row Count 3 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Snapshot option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Menentukan tingkat isolasi transaksi. \newline % Row Count 1 (+ 1) \seqsplit{ALLOW\_SNAPSHOT\_ISOLATION} \{ON | OFF\} \newline % Row Count 2 (+ 1) \seqsplit{READ\_COMMITTED\_SNAPSHOT} \{ ON | OFF\} \newline % Row Count 3 (+ 1) \seqsplit{MEMORY\_OPTIMIZED\_ELEVATE\_TO\_SNAPSHOT} \{ ON | OFF \} ::: Untuk SQL Server 2014 through SQL Server 2014% Row Count 5 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Snapshot option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Menentukan tingkat isolasi transaksi. \newline % Row Count 1 (+ 1) \seqsplit{ALLOW\_SNAPSHOT\_ISOLATION} \{ON | OFF\}% Row Count 2 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Recovery Option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pilihan recovery database dan checking error disk I/O. \newline % Row Count 2 (+ 2) FULL \newline % Row Count 3 (+ 1) BULK\_LOGGED \newline % Row Count 4 (+ 1) SIMPLE \newline % Row Count 5 (+ 1) TORN\_PAGE\_DETECTION \{ ON | OFF \} \newline % Row Count 6 (+ 1) PAGE\_VERIFY \{ CHECKSUM | TORN\_PAGE\_DETECTION | NONE \}% Row Count 8 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{External access option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol apakah database dapat diakses oleh sumber daya eksternal, seperti objek dari database lain. \newline % Row Count 3 (+ 3) DB\_CHAINING \{ ON | OFF \} \newline % Row Count 4 (+ 1) TRUSTWORTHY \{ ON | OFF \} \newline % Row Count 5 (+ 1) \seqsplit{DEFAULT\_FULLTEXT\_LANGUAGE} \newline % Row Count 6 (+ 1) DEFAULT\_LANGUAGE \newline % Row Count 7 (+ 1) NESTED\_TRIGGERS \newline % Row Count 8 (+ 1) TRANSFORM\_NOISE\_WORDS \newline % Row Count 9 (+ 1) TWO\_DIGIT\_YEAR\_CUTOFF% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Delayed durability option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol apakah transaksi commit sepenuhnya tahan lama atau tertunda tahan lama. \newline % Row Count 2 (+ 2) DISABLED \newline % Row Count 3 (+ 1) ALLOWED \newline % Row Count 4 (+ 1) FORCED% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Database Mirroring}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol mirroring database untuk database. Nilai yang ditetapkan dengan database pilihan mirroring berlaku untuk kedua salinan dari database dan sesi dari database mirroring secara keseluruhan. Hanya satu \textless{}database\_mirroring\_option\textgreater{} diizinkan per ALTER pernyataan DATABASE% Row Count 6 (+ 6) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Cursor Options}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{mengontrol pilihan kursor. \newline % Row Count 1 (+ 1) \seqsplit{CURSOR\_CLOSE\_ON\_COMMIT} \{ ON | OFF \} \newline % Row Count 2 (+ 1) CURSOR\_DEFAULT \{ LOCAL | GLOBAL \}% Row Count 3 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{db encryption option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pernyataan enkripsi database \newline % Row Count 1 (+ 1) OFFLINE \newline % Row Count 2 (+ 1) Database ditutup, menutup dengan rapi, dan ditandai offline. Database tidak dapat dimodifikasi ketika sedang offline. \newline % Row Count 5 (+ 3) ON LINE \newline % Row Count 6 (+ 1) Database terbuka dan tersedia untuk digunakan. \newline % Row Count 7 (+ 1) EMERGENCY \newline % Row Count 8 (+ 1) Database ditandai READ\_ONLY, logging dinonaktifkan, dan akses terbatas kepada anggota sysadmin peran server tetap. EMERGENCY utamanya digunakan untuk tujuan pemecahan masalah.% Row Count 12 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{db encryption option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pernyataan enkripsi database \newline % Row Count 1 (+ 1) OFFLINE \newline % Row Count 2 (+ 1) Database ditutup, menutup dengan rapi, dan ditandai offline. Database tidak dapat dimodifikasi ketika sedang offline. \newline % Row Count 5 (+ 3) ON LINE \newline % Row Count 6 (+ 1) Database terbuka dan tersedia untuk digunakan. \newline % Row Count 7 (+ 1) GAWAT DARURAT \newline % Row Count 8 (+ 1) Database ditandai READ\_ONLY, logging dinonaktifkan, dan akses terbatas kepada anggota sysadmin peran server tetap. DARURAT utamanya digunakan untuk tujuan pemecahan masalah.% Row Count 12 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Target recovery time option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Menentukan frekuensi pos pemeriksaan langsung pada basis per-basis data. \newline % Row Count 2 (+ 2) TARGET\_RECOVERY\_TIME =target\_recovery\_time \{ SECONDS | MINUTES \}% Row Count 4 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Date correlation optimization option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\seqsplit{DATE\_CORRELATION\_OPTIMIZATION} \{ON | OFF\} \newline % Row Count 1 (+ 1) ON \newline % Row Count 2 (+ 1) SQL Server mempertahankan statistik korelasi antara dua tabel dalam database yang dihubungkan oleh kendala FOREIGN KEY dan memiliki kolom datetime. \newline % Row Count 5 (+ 3) OFF \newline % Row Count 6 (+ 1) Statistik Korelasi tidak dipertahankan.% Row Count 7 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{SQL Option}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Mengontrol pilihan kesesuaian ANSI pada level database. \newline % Row Count 2 (+ 2) ANSI\_NULL\_DEFAULT \{ ON | OFF \} \newline % Row Count 3 (+ 1) ANSI\_NULLS \{ ON | OFF \} \newline % Row Count 4 (+ 1) ANSI\_PADDING \{ ON | OFF \} \newline % Row Count 5 (+ 1) ANSI\_WARNINGS \{ ON | OFF \} \newline % Row Count 6 (+ 1) ARITHABORT \{ ON | OFF \} \newline % Row Count 7 (+ 1) COMPATIBILITY\_LEVEL \{ 90 | 100 | 110 | 120\} \newline % Row Count 8 (+ 1) \seqsplit{CONCAT\_NULL\_YIELDS\_NULL} \{ ON | OFF \} \newline % Row Count 9 (+ 1) QUOTED\_IDENTIFIER \{ ON | OFF\} \newline % Row Count 10 (+ 1) NUMERIC\_ROUNDABORT \{ ON | OFF \} \newline % Row Count 11 (+ 1) RECURSIVE\_TRIGGERS \{ ON | OFF \}% Row Count 12 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}