Jump to content

File option NAME is required

Recommended Posts

Im am trying to do this SQL code;

CREATE DATABASE AdventureWorks2012 ON (FILENAME = '{drive}:\
{file path}\AdventureWorks2012_Data.mdf')

I am getting the following error when i run it:

Msg 1036, Level 16, State 2, Line 1
File option NAME is required in this CREATE/ALTER DATABASE statement.
My file location is: '{c}:/AAPOLLIS-M/Users/aapollis/Downloads/AdventureWorks2012_Data.mdf')
What am i doing wrong? Running on SQL Server 2014(free or trial version).
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...