"CREATE FILE encountered operating system error 2(The system cannot find the file specified.)..." when trying to attach database in SQL Server

Autodesk Support

Oct 8, 2023


Products and versions covered


Issue:

The error message "CREATE FILE encountered operating system error 2(The system cannot find the file specified.)..." is shown when trying to attach database in SQL Server Management Studio:

Microsoft SQL Server Management Studio

Failed to retrieve data for this request...
CREATE FILE encountered operating system error 2(The system cannot find the file specified.) while attempting to open or create the physical file '\\...\AstCrtlDb'. (Microsoft SQL Server, Error: 5123).

Error (002) - Copy.png

Causes:

SQL services have insufficient access rights to the folder where the database is placed.
 

Solution:

Provide full access rights to the folder where the database is placed.

As a visual verification, the folder content / the database should be visible in the "Attach database" dialog box when trying to attach the database in SQL Server Management Studio.

Products:

Advance Steel;

Versions:

2019; 2020; 2021; 2022;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support