EPDM – Running a T-SQL Query

Article by Joe Medeiros, CSWE updated January 14, 2015

Article

T-SQL queries can be useful in retrieving information on your vault. This information can be used to look for problems and to help resolve problems. T-SQL queries, as an example, can be used to find duplicate files, files owned by a particular user, or files that have not been replicated. These queries can then become the basis for creating EPDM Reports. In this article we will look at how to open and run an existing query.

Launch Microsoft SQL Server Management Studio

SQL Man Studio

Accessing SQL Server Management Studio

After logging in, from the File pull-down select Open>File

File-open

Accessing Open Command

The file extension for queries is sql

select file

SQL Extension

Some parameters such as the archive server name, may need to be modified. Queries may contain instructions on what needs to be modified.

modify

Query Sample

The database that will be used by the query, can be defined from a pull-down.

15 07 2021 12 43 46

Choosing Database

A query can also be opened by double-clicking on the query file.

15 07 2021 12 47 03

SQL Queries In Windows Explorer

Related Links

Want to do more with SOLIDWORKS PDM?

Our Certified SOLIDWORKS PDM Experts can help you to:

Find Related Content by TAG:

Joe Medeiros, CSWE

Joe Medeiros is a SOLIDWORKS and PDM Certified Expert. He has been helping SOLIDWORKS users with training, mentoring and implementations since 1998. He combines industry experience with a thorough understanding of SOLIDWORKS products to assist customers in being successful. He shares his experience and expertise through blogs; one of which has been incorporated into the SOLIDWORKS Essentials training manual.