Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

SQL 2008 cannot creat new database

$
0
0
I am working from the TK432 exam self paced training kit.  I am using the Enterprise Evaluation edition. One of the exercises is to create a new database.  I receive errors listed below:

Msg 5133, Level 16, State 1, Line 1

Directory lookup for the file "c:\test\TK432.mdf" failed with the operating system error 2(The system cannot find the file specified.).

Msg 1802, Level 16, State 1, Line 1

CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

Below is the code used:

CREATE

 

DATABASE TK432 ONPRIMARY

(

 

NAME =N'TK432_Data',FILENAME=N'c:\test\TK432.mdf',

SIZE

= 8MB , MAXSIZE =UNLIMITED, FILEGROWTH = 16MB ),

FILEGROUP FG1

(

 

NAME =N'TK432_Data2',FILENAME=N'c:\test\TK432.ndf',

SIZE

= 8MB , MAXSIZE =UNLIMITED, FILEGROWTH = 16MB ),

FILEGROUP Documents

CONTAINSFILESTREAMDEFAULT

(

 

NAME =N'c:\test\TK432Documents',FILENAME=N'c:\test\TK432Documents')

LOG

 

ON

(

 

NAME =N'TK432_Log',FILENAME=N'c:\test\TK432.ldf',

SIZE

= 8MB , MAXSIZE = 2048GB , FILEGROWTH = 16MB )

GO


Viewing all articles
Browse latest Browse all 15694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>