创建数据库遇到的简单问题
create database MeetingRoomBooker
on
(name=MeetingRoomBooker_dat,
filename='d:\database\data\MeetingRoomBooker.mdf',
size=10,
maxsize=50,
filegrowth=5)
log on
(name='MeetingRoomBooker_log',
filename='d:\database\MeetingRoomBooker.ldf',
size=5MB,
maxsize=25MB,
filegrowth=5MB)
GO
如果没有创建filename的路径,也就是d:\database\data不存在,可能提示:
设备激活错误。物理文件名 'D:\database\data\MeetingRoomBooker.mdf' 可能有误。
创建文件夹是'd:\database\data后,问题解决,