GradeManager 概念模型

GradeManager 逻辑模型

GradeManager 物理模型

导出SQL
双击物理模型的Diagram

顶层的工具栏变成了这个样子

选择 Generate Database

填写文件名和保存路径

生成了对应的.sql文件

将SQL 文件导入SQL Server
右键新建一个数据库

添加数据库名称,添加所有者

选择浏览

添加个人用户 这里的Turing 是我

选中数据库 右键刷新一下
选中GradeManager 新建查询
将生成的SQL语句粘贴到上面 然后添加一行
这里GradeManager 是我们数据库的名称
USE GradeManager;


如果嫌烦不想每次都手动添加 use 语句 那么参考链接
SQL Server 设置默认数据库
执行一下代码

表单生成完成
(确保你有权限去执行sql)

相关链接
E-R图 模型转化
网友评论