- Code: Tout sélectionner
sqlcmd -S Gimagin-server\MSSMLBIZ -E -Q
"CREATE DATABASE [Gimagin_BCM] ON (NAME = N'Gimagin_BCM_dat', FILENAME = N'E:\Business Contact Manager\Gimagin_BCM.mdf',
SIZE = 25, FILEGROWTH = 50%) LOG ON (NAME = N'Gimagin_BCM_log', FILENAME = N'E:\Business Contact Manager\Gimagin_BCM.ldf', SIZE = 10, FILEGROWTH = 50%) Collate French_CI_SA
exec sp_dboption N'Gimagin_BCM', N'autoclose', N'false'
exec sp_dboption N'Gimagin_BCM', N'bulkcopy', N'true'
exec sp_dboption N'Gimagin_BCM', N'trunc. log', N'true'
exec sp_dboption N'Gimagin_BCM', N'torn page detection', N'true'
exec sp_dboption N'Gimagin_BCM', N'read only', N'false'
exec sp_dboption N'Gimagin_BCM', N'dbo use', N'false'
exec sp_dboption N'Gimagin_BCM', N'single', N'false'
exec sp_dboption N'Gimagin_BCM', N'autoshrink', N'false'
exec sp_dboption N'Gimagin_BCM', N'recursive triggers', N'false'
exec sp_dboption N'Gimagin_BCM', N'ANSI nulls', N'false'
exec sp_dboption N'Gimagin_BCM', N'contact null yields null', N'false' exec sp_dboption N'Gimagin_BCM', N'cursor close on commit', N'false' exec sp_dboption N'Gimagin_BCM', N'default to local cursor', N'false'
exec sp_dboption N'Gimagin_BCM', N'quoted identifier', N'false'
exec sp_dboption N'Gimagin_BCM', N'ANSI warnings', N'false'
exec sp_dboption N'Gimagin_BCM', N'auto create statistics', N'true'
exec sp_dboption N'Gimagin_BCM', N'auto update statistics', N'true'"
Les erreurs sont les suivantes :
Message 102, niveau 15, état 1, serveur GIMAGIN-SERVER\MSSMLBIZ, syntaxe incorrecte vers '\'.
Message 105, niveau 15, état 1, serveur GIMAGIN-SERVER\MSSMLBIZ, ouvrez les guillemets après la chaîne de caractères ''.
Merci de votre aide.




