CREATEDATABASEdatabase_snapshot_nameON(NAME=logical_file_name,FILENAME='os_file_name') [ ,...n ]ASSNAPSHOTOF[;] 参数 database_name 这是新数据库的名称。 数据库名称在 SQL Server 的实例中必须是唯一的,并且必须符合标识符规则。 除非没有为日志文件指定逻辑名称,否则 database_name 最多可以包含...
Create a database. For more information about the syntax conventions, seeTransact-SQL syntax conventions. syntaxsql CREATEDATABASEdatabase_name[CONTAINMENT= {NONE|PARTIAL} ] [ON[PRIMARY]<filespec>[ ,...n ] [ ,<filegroup>[ ,...n ] ] [LOGON<filespec>[ ,...n ] ] ] [COLLATEcollation_...
MicrosoftSQL Server 2005 Express Edition 不设置数据文件和日志文件权限。 示例 A. 创建未指定文件的数据库 以下示例创建名为 mytest 的数据库,并创建相应的主文件和事务日志文件。因为语句没有 <filespec> 项,所以主数据库文件的大小为 model 数据库主文件的大小。事务日志将设置为下列值中的较大者:512 KB 或...
This statement creates a new U-SQL database with the specified name. Syntax Create_Database_Statement := 'CREATE' 'DATABASE' ['IF' 'NOT' 'EXISTS']DB_Name. DB_Name:=Quoted_or_Unquoted_Identifier. Remarks DB_Name Specifies the name of the database in form of aquoted or unquoted U-SQL...
CREATE DATABASE ENCRYPTION KEY (Transact-SQL) CREATE DEFAULT (Transact-SQL) CREATE ENDPOINT (Transact-SQL) CREATE EVENT NOTIFICATION (Transact-SQL) CREATE EVENT SESSION (Transact-SQL) CREATE FULLTEXT CATALOG (Transact-SQL) CREATE FULLTEXT INDEX (Transact-SQL) ...
Conventions de la syntaxe de Transact-SQL CREATE DATABASE database_name [ ON [ PRIMARY ] [ <filespec> [ ,...n ] [ , <filegroup> [ ,...n ] ] [ LOG ON { <filespec> [ ,...n ] } ] ] [ COLLATE collation_name ] [ WITH <external_access_option> ] ...
database_name can be a maximum of 128 characters, unless a logical name is not specified for the log file. If a logical log file name is not specified, SQL Server generates the logical_file_name and the os_file_name for the log by appending a suffix to database_name. This limits dat...
SQL Copy USE master; GO CREATE DATABASE Sales ON (NAME = Sales_dat, FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\DATA\saledat.mdf', SIZE = 10, MAXSIZE = 50, FILEGROWTH = 5) LOG ON (NAME = Sales_log, FILENAME = 'C:\Program Files\Microsoft SQL...
Open an existing Access database Overview When you first start Access, or if you close a database without closing Access, the Microsoft Office Backstage view is displayed. The Backstage view is a starting point from which you can create a new database, open an existing database, view featu...
Connect by using single sign-on for Microsoft SQL Server If you run DataGrip on Windows in the same domain as the Microsoft SQL Server database, you can use the Single-Sign On (SSO). Navigate toFile | Data Sourcesor pressCtrlAltShift0S. ...