Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Ceér un DB

1 réponse
Avatar
big
Bonjour,
je veux créer un DB par le script suivant :
SET QUOTED_IDENTIFIER OFF
GO

CREATE DATABASE HC1
ON (NAME = HC1,
FILENAME = 'HC1_DATA',
SIZE = 212M,
MAXSIZE = UNLIMITED)
LOG ON (NAME = HC1_log,
FILENAME = 'HC1_log',
SIZE = 12M,
MAXSIZE = UNLIMITED)
COLLATE Latin1_General_BIN
GO
ALTER DATABASE HC1 SET READ_COMMITTED_SNAPSHOT ON;
GO

ALTER DATABASE HC1 SET ARITHABORT ON
GO

ALTER DATABASE HC1
SET QUOTED_IDENTIFIER ON
go

Et jr reçois les erreurs :

Msg 153, Level 15, State 1, Line 5
Invalid usage of the option M in the CREATE/ALTER DATABASE statement.


Merci pour votre aide.

1 réponse

Avatar
Patrice
Bonjour,


SIZE = 212M,
SIZE = 12M,



Invalid usage of the option M in the CREATE/ALTER DATABASE statement.



La doc (http://technet.microsoft.com/fr-fr/library/ms176061.aspx) indique
comme unités possibles pour la taille KB, MB, GB ou TB mais pas M tout
court...

--
Patrice