salut,
j'ai une erreur lors de la creation de ma base:
system.data.sqlexception: create database failed.some files names listed could not be created.chek related errors.
CREATE FILE encoutered operating system erro ( (accès refusé).while attempting to open or create the physical file C:\ping_rojet.mdf
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 Dim myConn As SqlConnection = New SqlConnection("Server=hela\SQLEXPRESS;" & _ "Integrated Security=True; ") str = "CREATE DATABASE MyDatabase ON PRIMARY " & _ "(NAME = ping_projet_Data, " & _ " FILENAME = 'C:\ping_projet.mdf', " & _ " SIZE = 3MB, " & _ " MAXSIZE = 10MB, " & _ " FILEGROWTH = 10%) " & _ " LOG ON " & _ "(NAME = ping_projet, " & _ " FILENAME = 'C:\ping_projetLog.ldf', " & _ " SIZE = 1MB, " & _ " MAXSIZE = 5MB, " & _ " FILEGROWTH = 10%) "
Partager