CREATE DATABASE using file in default path

前端 未结 6 1525
借酒劲吻你
借酒劲吻你 2021-02-05 03:28

I want to create an SQL script that creates a database. Right now, I have this:

CREATE DATABASE [Documents] ON  PRIMARY 
( NAME = N\'Documents\', FILENAME = N\'         


        
6条回答
  •  臣服心动
    2021-02-05 04:16

    I believe that you can do

    CREATE DATABASE [Documents]
    

    without the ON .... and it will get created with defaults for path and the rest.

提交回复
热议问题