1.数据库的迁移方案
  ->分离 附加
  ->权限问题:
    ->启用Administrator账号
    ->把数据库文件放到默认的数据库文件存放目录。
    ->数据库文件兼容级别,设置成2005兼容
  ->脱机 附加
  ->备份 还原
  ->生成SQL脚本(最保险)

    设置脚本编写选项——保存到新建查询窗口;

    高级——要编写脚本的数据的类型——架构和数据

 USE [master]
GO
/****** Object: Database [LJK_SQLServerDB] Script Date: 2019/11/1 9:33:50 ******/
CREATE DATABASE [LJK_SQLServerDB]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'LJK_SQLServerDB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\LJK_SQLServerDB.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
LOG ON
( NAME = N'LJK_SQLServerDB_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\LJK_SQLServerDB_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = %)
GO
ALTER DATABASE [LJK_SQLServerDB] SET COMPATIBILITY_LEVEL =
GO
IF ( = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [LJK_SQLServerDB].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [LJK_SQLServerDB] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET ANSI_NULLS OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET ANSI_PADDING OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET ARITHABORT OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET AUTO_CLOSE OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [LJK_SQLServerDB] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [LJK_SQLServerDB] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [LJK_SQLServerDB] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET DISABLE_BROKER
GO
ALTER DATABASE [LJK_SQLServerDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET ALLOW_SNAPSHOT_ISOLATION OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [LJK_SQLServerDB] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET RECOVERY FULL
GO
ALTER DATABASE [LJK_SQLServerDB] SET MULTI_USER
GO
ALTER DATABASE [LJK_SQLServerDB] SET PAGE_VERIFY CHECKSUM
GO
ALTER DATABASE [LJK_SQLServerDB] SET DB_CHAINING OFF
GO
ALTER DATABASE [LJK_SQLServerDB] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF )
GO
ALTER DATABASE [LJK_SQLServerDB] SET TARGET_RECOVERY_TIME = SECONDS
GO
USE [LJK_SQLServerDB]
GO
/****** Object: Table [dbo].[User_Info] Script Date: 2019/11/1 9:33:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[User_Info](
[User_ID] [int] IDENTITY(,) NOT NULL,
[User_Name] [nchar]() NULL,
[User_Gender] [bit] NULL,
[User_Age] [int] NULL,
[User_Address] [nvarchar]() NULL,
[User_Birthday] [datetime] NULL,
[User_Remark] [nvarchar](max) NULL,
[User_Money] [money] NULL,
[User_GUIDDemo] [uniqueidentifier] NULL,
CONSTRAINT [PK_User_Info] PRIMARY KEY CLUSTERED
(
[User_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO
SET IDENTITY_INSERT [dbo].[User_Info] ON GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'li ', , , NULL, CAST(0x00009F9800000000 AS DateTime), NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'koko ', , , NULL, CAST(0x0000A04900000000 AS DateTime), NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'ali ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'wang ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'kong ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'ii ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'ii ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'mm ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'tt ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'gg ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'dd ', , , NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[User_Info] ([User_ID], [User_Name], [User_Gender], [User_Age], [User_Address], [User_Birthday], [User_Remark], [User_Money], [User_GUIDDemo]) VALUES (, N'rr ', , , NULL, NULL, NULL, NULL, NULL)
GO
SET IDENTITY_INSERT [dbo].[User_Info] OFF
GO
USE [master]
GO
ALTER DATABASE [LJK_SQLServerDB] SET READ_WRITE
GO

1_01_MSSQL课程_基础入门2的更多相关文章

  1. 1_01_MSSQL课程_基础入门

    0. 课程安排: 课程共7天课,前两天SQL基础,后面三天Ado.Net ,最后两天数据库高级进阶学习. 1.数据库的概念 ->数据库就是数据仓库. ->DBMS:数据库管理系统.SQLS ...

  2. linux makefile: c++ 编程_基础入门_如何开始?

    学习android 终究还是需要研究一下其底层框架,所以,学习c++很有必要. 这篇博客,算是linux(ubuntu) 下学习 c++ 的一个入门. 刚开始学习编程语言的时候,最好还是使用命令行操作 ...

  3. 零基础入门Python实战:四周实现爬虫网站 Django项目视频教程

    点击了解更多Python课程>>> 零基础入门Python实战:四周实现爬虫网站 Django项目视频教程 适用人群: 即将毕业的大学生,工资低工作重的白领,渴望崭露头角的职场新人, ...

  4. [转]小D课堂 - 零基础入门SpringBoot2.X到实战_汇总

    原文地址:https://www.cnblogs.com/wangjunwei/p/11392825.html 第1节零基础快速入门SpringBoot2.0 小D课堂 - 零基础入门SpringBo ...

  5. 小D课堂 - 零基础入门SpringBoot2.X到实战_汇总

    第1节零基础快速入门SpringBoot2.0 小D课堂 - 零基础入门SpringBoot2.X到实战_第1节零基础快速入门SpringBoot2.0_1.SpringBoot2.x课程介绍和高手系 ...

  6. Linux 基础入门----推荐课程

    Linux 基础入门课程:https://www.shiyanlou.com/courses/1 很好的一门Linux基础课,精炼.简洁!推荐! 课程内容: 第1节 Linux 系统简介 https: ...

  7. Siki_Unity_1-1_Unity零基础入门_打砖块

    1-1 Unity零基础入门 打砖块 任务1:素材源码 www.sikiedu.com/course/77 任务2:Unity介绍 王者荣耀,球球大作战等游戏都是用unity开发的 跨平台的游戏引擎 ...

  8. 2019年最新超级有趣好玩的html+css网页布局课程,前端入门基础,html5+css3零基础入门课程-黑马程序员pink老师精心录制

    大家好,我是黑马程序员pink老师!! 本次视频是前端零基础入门的课程,pink老师采取有趣好玩讲法,带你快乐的学习枯燥的html+css知识,学完之后让你能快速布局pc端页面.代码也可以讲的好玩有趣 ...

  9. Siki_Unity_1-3_Unity零基础入门_古迹探险

    1-3 Unity零基础入门 古迹探险 任务1/2:资料下载 链接:https://pan.baidu.com/s/1jHVymNk 密码:rbob 任务3:工程的创建和打开 Project:古迹探险 ...

随机推荐

  1. HTMLUNIT另一种注册方法

    1 环境搭建: 1)下载 从链接:http://sourceforge.net/projects/htmlunit/files/htmlunit/ 下载最新的bin文件 2)关于bin文件 里面主要包 ...

  2. python字典操作方法详解

    前言 字典是一种通过名字或者关键字引用的得数据结构,key 类型需要时被哈希,其键可以是数字.字符串.元组,这种结构类型也称之为映射.字典类型是Python中唯一內建的映射类型. 注意,浮点数比较很不 ...

  3. Codeforces1107E. Vasya and Binary String

    题目链接 本题也是区间dp,但是需要保存的信息很多,是1还是0,有多少个连续的,那我们可以预处理,将所有的连续缩合成1个字符,那么字符串就变成了一个01交替的串,我们任意的消除1个部分,一定能引起连锁 ...

  4. SpringBoot爬虫小说阅读网站,定时更新小说和抓取功能

    SpringBoot 小说爬虫搭建阅读网站 通过jsoup采集数据到mysql数据.redis作为缓存框架,减轻服务器压力.部署在linux,网站UI套纵横中文网! http://47.107.116 ...

  5. c#DDOS代码

    //在工程属性中设置"允许不安全代码"为true ?using System; using System.Net; using System.Net.Sockets; using ...

  6. 19年读100本书之第二本--《OKR工作法》-克里斯蒂娜 沃特克

    0,一句话概括书的内容? OKR(objective key result),即目标与关键结果. 1,我从这本书能得到什么? 2,核心内容是什么? 3,我要怎么做?

  7. robot framework 接口post请求需要加headers

    说明:当你用RF进行post接口测试时候,那么需要加个headers=Content-Type=application/x-www-form-urlencoded,要不然会请求不成功的.

  8. 吴裕雄 Bootstrap 前端框架开发——Bootstrap 表格:在 <tbody> 内的任一行启用鼠标悬停状态

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

  9. docker进入交互界面

    进入cmd交互界面 docker run -it python:3.5 /bin/bash 退出 exit ctrl + d

  10. kafka 副本同步细节

    图片来源:咕泡学院