Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
Files that are external to any SQL Server Management Studio (SSMS) project are called miscellaneous files. When you have a project or solution open, you can open and modify miscellaneous files related to the project. A file is classified as a miscellaneous file if the file extension isn't associated with the project code editor.
For example, in a SQL Server Scripts project, files with the extension .txt or .mdx are treated as miscellaneous files. In an MDX project, files with the extension of .txt or .sql are treated as miscellaneous files. To associate a file extension with a code editor, see Associate file extensions to a code editor.
Work with miscellaneous files
There are several reasons why it's useful to add miscellaneous files to your project. You might have a file that isn't necessarily a recognized script but is integral to the solution's development. Common examples include development notes or instructions, data files, and code clips.
Miscellaneous files provide flexibility. For example, suppose you have a SQL Server Scripts project that has several scripts for creating tables and stored procedures in your database. You also have several data files for the tables with file extensions .bcp, and execution instructions in a README file. You can attach the data and the README files as miscellaneous files to the project, so you can take advantage of source control and other features of the project system.
SSMS menus and toolbars change according to the format of the file you open. When you open a text file, for example, the Text Editor toolbar appears. If you open an XML schema file, the XML Schema toolbar appears. When you edit your XML schema, the Text Editor toolbar is unavailable. When you switch between a project file and a miscellaneous file, all project-related commands and toolbars are replaced by the commands and toolbars relevant to the miscellaneous file.