| 5. |
A developer runs CREATE DATABASE TrainingDB ON PRIMARY (NAME = TrainingDB_Data, FILENAME = 'C:\SQLData\TrainingDB.mdf', SIZE = 100MB) LOG ON (NAME = TrainingDB_Log, FILENAME = 'C:\SQLData\TrainingDB.ldf', SIZE = 25MB); on a server where the folder C:\SQLData does not yet exist. What happens?
Please select the best answer.
|
| |
A.
|
SQL Server creates the C:\SQLData folder automatically, then creates the database normally. |
| |
B.
|
The statement fails with an error, because SQL Server will not create a missing folder on its own. |
| |
C.
|
SQL Server silently creates the database in the instance's default data directory instead, ignoring the FILENAME path given. |
| |
D.
|
The statement succeeds, but the database is left offline until the folder is created by hand. |