Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

How to Make Database Queries with Microsoft SQL Server Management Studio

Last updated on 28 September 2020

Admin
Search

Overview

If you are using SQL Server as a database engine for your M-Files vaults, M-Files support personnel may ask you to do a database query with Microsoft SQL Server Management Studio to investigate an issue or for repairing a vault database. This document describes how to do such queries and provide information about other usages as well.
 

Solution

To make a database query with SQL Server Management Studio do the following:
1) Run SQL Server Management Studio.
2) Connect to the SQL Server database engine with administrator credentials.
3) In the Object Explorer pane expand Databases under the server.
4) Right-click on a vault database name (a database name is by default the same as a vault name in M-Files Admin) and select New Query.


5) The SQL query pane will open. Write a query to the pane.


6) Either press Execute button or press F5.
7) The results will appear to the lower part of the pane.

8) If you need to send a query result to the M-Files support, click on the results area and select Save Results As... from the File menu and select file name and folder and send that file to the M-Files support.
Note that you should never do SQL queries (e.g. INSERT or UPDATE statement) that change any way a vault database or its data unless M-Files support personnel provide you such queries.

Other usages of SQL Server Management Studio

You can also check the size of the vault database with SQL Server Management Studio, for details see chapter 1.3.2 in a following knowledge base document:
Monitoring and Optimizing M-Files Performance
For performance reasons it is recommended that you specify a fixed amount of memory that the SQL Server instance will use. You can check the settings and change them with SQL Server Management Studio as well, for instructions see chapter 1.4 in the previously mentioned document.
 

Still need help?