Can`t create database in Microsoft SQL Server 2012 Management Studio RRS feed

  • Question

  • User861023902 posted

    TITLE: Microsoft SQL Server Management Studio

    Create failed for Database 'test_dbb'. (Microsoft.SqlServer.Smo)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Database&LinkId=20476


    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)


    A file activation error occurred. The physical file name 'test_dbb.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors. (Microsoft SQL Server, Error: 5105)

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=12.00.2000&EvtSrc=MSSQLServer&EvtID=5105&LinkId=20476


    I am running as an Administrator, also tried  Security > Logins > myAccount > Server Roles > Checked : sysadmin, dbcreator
    and still not working...

    Thursday, June 9, 2016 9:38 AM


All replies

  • User-359936451 posted

    Check this link from MS support page....


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 9, 2016 8:05 PM
  • User1559292362 posted

    Hi evilrid,

    Can`t create database in Microsoft SQL Server 2012 Management Studio

    using SSMS to create the database the SQL Server service account is used to access the file system and it is very likely that it does not have permission to the specified directory.

    As march11 said, you could change the default path. Besides, you could also use DDL create the database, like this:

    CREATE DATABASE [test_dbb]

    Best regards,

    Cole Wu

    Friday, June 10, 2016 8:44 AM