Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.83 KB

File metadata and controls

39 lines (34 loc) · 1.83 KB

title: "Print Code and Results | Microsoft Docs" ms.custom: "" ms.date: "03/01/2017" ms.prod: "sql" ms.prod_service: "sql-tools" ms.service: "" ms.component: "ssms-scripting" ms.reviewer: "" ms.suite: "sql" ms.technology:

  • "database-engine" ms.tgt_pltfrm: "" ms.topic: "article" helpviewer_keywords:
  • "Query Editor [SQL Server Management Studio], printing"
  • "code printing [SQL Server Management Studio]"
  • "text printing [SQL Server Management Studio]"
  • "printing code and text" ms.assetid: 6e60173f-77fb-4a3e-a561-62c4d0128b95 caps.latest.revision: 22 author: "MightyPen" ms.author: "genemi" manager: "craigg" ms.workload: "Inactive" monikerRange: ">= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || = sqlallproducts-allversions"

Print Code and Results

[!INCLUDEappliesto-ss-asdb-asdw-pdw-md] When you print a query or file, colorized elements print in color if your printer supports color printing and color printing is enabled in the printer setup.

However, the font and coloration of text in the Editor and the way that the text prints on the printer can differ. From the Tools menu, select Options. Under Environment, click Fonts and Colors, and then select fonts and colors for items to be displayed in the Editor and fonts and colors that take effect when printing. Because these settings can differ, the output might differ from what you see displayed in the Editor.

If you have line numbers enabled in the Editor, the line numbers will not print unless you select Include line numbers in the Print dialog box on the File menu.

See Also

Change Font Color, Size, and Style