网站导航网学 原创论文 原创专题 网站设计 最新系统 原创论文 论文降重 发表论文 论文发表 UI设计定制 论文答辩PPT格式排版 期刊发表 论文专题
返回网学首页
网学原创论文
最新论文 推荐专题 热门论文 论文专题
当前位置: 网学 > 交易代码 > 课程设计 > 正文

学生成绩管理系统课程设计程序脚本

论文降重修改服务、格式排版等 获取论文 论文降重及排版 论文发表 相关服务

  use master

  go

  disk init

  name="mai1dev",

  physname="c:\mai1dev",

  vdevno=6,

  size=1024

  go

  disk init

  name="mai1dev2",

  physname="c:\mai1dev2",

  vdevno=7,

  size=2048

  go

  disk mirror

  name="mai1dev",

  mirror="c:\mai1dev.mir"

  go

  sp_diskdefault mai1dev,defaulton

  set nocount on

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  drop database maidb

  end

  go

  print 'Creating the "maidb" database'

  go

  create database maidb

  on mai1dev2=4

  log on mai1dev=2

  with override

  go

  set dateformat mdy

  go

  use maidb

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  execute sp_addtype id, "varchar(11)", "not null"

  execute sp_addtype cid , "varchar(6)", "not null"

  end

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table banji

  (bj_id  char(8)  not null,

  bj_name varchar(20) not null,

  banzhang varchar(20) not null,

  phone char(12) not null)

  end

  go

  grant select on banji to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table kecheng

  (kc_id char(8) not null,

  kc_name varchar(20) null)

  end

  go

  grant select on kecheng to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table jiaoshi

  (js_id char(8) not null,

  js_name char(8) not null,

  zhiye varchar(20) not null,

  xi_id char(8) not null,

  zy_id char(8) not null,

  xb char(2) not null)

  end

  go

  grant select on jiaoshi to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table xi

  (xi_id char(8) not null,

  xi_name varchar(20) not null,

  xzr varchar(20) not null,

  jxms varchar(20) not null,

  phone  char(12)  not null)

  end

  go

  grant select on xi to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table zhuanye

  (zy_id char(8) not null,

  zy_name varchar(20) not null,

  xyzr varchar(20) not null,

  phone  char(12)  not null)

  end

  go

  grant select on zhuanye to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table jskc

  (js_id char(8) not null,

  kc_id char(8) not null,

  bj_id char(8) not null,

  jc_id  char(8) not null,

  xs  int not null,

  cxf   int not null,

  didian varchar(20) not null,

  ks int not null)

  end

  go

  grant select on jske to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table jiaocai

  (jc_id char(8) not null,

  jiaocai varchar(20) not null)

  end

  go

  grant select on jiaocai to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table xskc

  (bj_id char(8) not null,

  kc_id char(8) not null,

  xuehao char(8)  not null,

  chengji    int not null,)

  end

  go

  grant select on xske to public

  go

  if exists (select * from master.dbo.sysdatabases

  where name = "maidb")

  begin

  create table xueshen

  ( xuehao  char(8) not null,

  name varchar(20) not null,

  xb  char(2)  not null,

  bj_id char(8) not null,

  rq datetime not null,

  zy_id cha

  • 下一篇资讯: 成绩管理系统--数据
  • 设为首页 | 加入收藏 | 网学首页 | 原创论文 | 计算机原创
    版权所有 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师