Bonjour,
je fais appelle aux experts SqlServer concernant l'installation silencieuse de sql server 2012 express.
Ce que je souhaite réaliser :
- installation silencieuse, pas de boite de dialogue (ok avec /Q)
- utilisation du mode de connexion mixte (sql)
- création d'un user sql (ex : user = toto , pswd = password)
- rendre disponible la BDD sur le réseau (ok avec TCPENABLED="1")
Voici comment je procède :
dans mon code vb.net :
'SqlServeurSetupChemin = emplacement du setup.exe
'SqlServeurConfigFileChemin = emplacement du fichier de configuration
'avant ce code, vérification de l'existence des deux fichiers ci-dessus....
Code vb : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Dim processObj As System.Diagnostics.Process = System.Diagnostics.Process.Start(SqlServeurSetupChemin, "/Q /IAcceptSQLServerLicenseTerms=True /SECURITYMODE='SQL' /SAPWD='password' /SQLSVCPASSWORD='password' /SQLSVCACCOUNT ='toto' /CONFIGURATIONFILE=" & SqlServeurConfigFileChemin & " ") processObj.WaitForExit()
et voici mon fichier de configuration :
avez vous une idée??
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 ;SQL Server 2012 Configuration File [OPTIONS] ACTION="Install" ROLE="AllFeatures_WithDefaults" UIMODE="AutoAdvance" QUIET="FALSE" QUIETSIMPLE="FALSE" UpdateEnabled="True" FEATURES=SQLENGINE,REPLICATION UpdateSource="MU" HELP="False" INDICATEPROGRESS="False" X86="FALSE" INSTALLSHAREDDIR="[REP]" INSTANCENAME="MON_SERVEUR" INSTANCEID="MON_SERVEUR" SQMREPORTING="False" ERRORREPORTING="False" INSTANCEDIR="C:\MSSQL11.MON_SERVEUR\MSSQL" AGTSVCACCOUNT="AUTORITE NT\SERVICE RÉSEAU" AGTSVCSTARTUPTYPE="Disabled" COMMFABRICPORT="0" COMMFABRICNETWORKLEVEL="0" COMMFABRICENCRYPTION="0" MATRIXCMBRICKCOMMPORT="0" SQLSVCSTARTUPTYPE="Automatic" FILESTREAMLEVEL="0" ENABLERANU="True" SQLCOLLATION="French_CI_AS" SQLSVCACCOUNT="NT AUTHORITY\LOCAL SERVICE" ADDCURRENTUSERASSQLADMIN="True" TCPENABLED="1" NPENABLED="0" BROWSERSVCSTARTUPTYPE="Disabled"
Merci d'avance
Et bonne année
Partager