热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

开发笔记:DatabaseSQLServer2017

篇首语:本文由编程笔记#小编为大家整理,主要介绍了DatabaseSQLServer2017相关的知识,希望对你有一定的参考价值。SQ

篇首语:本文由编程笔记#小编为大家整理,主要介绍了Database SQL Server 2017相关的知识,希望对你有一定的参考价值。


SQL Server 2017 : Preparation

Install SQL Server 2017 to build Database Server.

Refer to the Microsoft Site about details of SQL Server 2017.

? https://www.microsoft.com/en-us/sql-server/sql-server-2017

To use SQL Server 2017, read license terms well.

? https://www.microsoft.com/ja-jp/sql-server/sql-server-2017-pricing


[1]

Download an Edition of SQL Server Installer which you'd like to use.

? https://www.microsoft.com/ja-jp/sql-server/sql-server-downloads

After running EXE file you did download, following screen is shown. On this example, select [Download Media] to download ISO file of SQL Server 2017.
技术分享图片
[2]After downloading ISO file, mount it, then you can see files in ISO. Run [setup.exe] to manage installation and others.
技术分享图片
[3]After running [setup.exe], following screen is shown, Run [System Configuration Checker] to check your System.
技术分享图片
[4]This is the result of [System Configuration Checker] on this environment.
技术分享图片

SQL Server 2017 : Install

Install SQL Server 2017 with stand-alone installation.

Download SQL Server 2017 ISO file first, refer to [MSSQL2017 Preparation].


[1]Run [setup.exe] and click [Installation] on the left pane and click [New SQL Server stand-alone installation ***] on the right pane.
技术分享图片
[2]Select an Edition of SQL Server you'd like to install.
技术分享图片
[3]Read License terms well and check a box [I accept the license terms] to agree with it.
技术分享图片
[4]Select to check important update or not.
技术分享图片
[5]Setup rules indetify potential ploblems. Check the result and improve if ploblems are detected. For the warning of Windows firewall, it's possbile to configure later for SQL Server, so it's OK to proceed.
技术分享图片
[6]This is the section of selecting features you'd like to install. If you install all, click [Select All] button. For selecting All, Oracle Java 7 is needed for [PolyBase Query Service for External Data].
技术分享图片
[7]This is the section of Instance Configuration. Select [Default Instance] or [Named Instance]. (Keep default on this example)
技术分享图片
[8]This is the section of Service Accounts Configuration. Change them for your requirements. (Keep default on this example) If it's OK all, move to [Collation] tab.
技术分享图片
[9]This is the section of Collation Settings. Change them for your requirements. (Keep default on this example)
技术分享图片
[10]This is the section of Database Configuration. Select Authentication Mode and specify SQL Server administration account. If it's OK all, move to [Data Directories] tab.
技术分享图片
[11]This is the section of Data Directories Settings. Change them for your requirements. (Keep default on this example) If it's OK all, move to [TempDB] tab.
技术分享图片
[12]This is the section of TempDB Settings. Change them for your requirements. (Keep default on this example) If it's OK all, move to [FILESTREAM] tab.
技术分享图片
[13]This is the section of FILESTREAM Settings. Change them for your requirements. (Keep default on this example) If it's OK all, Proceed next.
技术分享图片
[14]This is the section of Analysys Services Configurations. Specify Administration Account of Analysys Services.
技术分享图片
[15]This is the section of Integration Services Scale out (Master Node) Configurations. Change them for your requirements. (Keep default on this example) If it's OK all, Proceed next.
技术分享图片
[16]This is the section of Integration Services Scale out (Worker Node) Configurations. Change them for your requirements. (Keep default on this example) If it's OK all, Proceed next.
技术分享图片
[17]This is the section of Distributed Relay Controller Configurations. Change them for your requirements. (Keep default on this example) If it's OK all, Proceed next.
技术分享图片
[18]This is the section of Distributed Relay Client Configurations. Change them for your requirements. (Keep default on this example) If it's OK all, Proceed next.
技术分享图片
[19]Verify selection of features and it it's OK, Click [Install] button.
技术分享图片
[20]Installation Starts.
技术分享图片
[21]After finishing Installation, Click [Close] button to complete.
技术分享图片

SQL Server 2017 : Connect to Database Engine

Install SQL Server Management Studio (SSMS) to connect to Database Engine. It's OK to install it both on Windows Server OS and Client OS.

[1]Download SSMS from the download site (SSMS is the free tool)

    After downloading, run Installser to install it.

? https://docs.microsoft.com/ja-jp/sql/ssms/download-sql-server-management-studio-ssms

[2]Run SQL Server Management Studio.
技术分享图片
[3]Specify Server you'd like to connect.
If destination server is localhost and also current User is set as SQL Server admin User, Only click [Connect] button like follows.
技术分享图片
[4]Just connected. It's possible to manage and configure SQL Server on here.
技术分享图片
[5]By the way, It's possible to change Authentication Mode if you selected Windows Authentication during installation.
For example, If your Client computer is out of Active Directory domain but you'd like to connect SQL Server within Active Directory domain, it needs SQL Server Authentication. 
To change settings, right-click Instance name and open [Properties].
技术分享图片
[6]Select [Security] on the left pane and check a box [SQL Server and Windows Authentication Mode] and click [OK] button.
技术分享图片
[7]Open [Security] - [Login] on the right pane and right-click [sa] to open [Properties].
[sa] is the SQL Server admin user.
技术分享图片
[8][sa]'s password is set automatically, so change it you like. Next, Move to [Status] on the left pane.
技术分享图片
[9]Check a box [Enabled] for [Login] section and click [OK] button.
技术分享图片
[10]Right-click instance name and select [Restart] to apply changes.
技术分享图片
[11]For connecting SQL Server with SQL Server Authentication, it needs at least port 1433 is opened, check your Windows Firewall settings if it is running.
For [Server Name], input Hostname or IP address and Instance name. (if instance name is default one, it's optional keyword like follows)
For [Login] and [password], input [sa] and his password on this example.
技术分享图片
[12]Just Connected with SQL Server Authentication.
技术分享图片

SQL Server 2017 : Run Transact-SQL(T-SQL)

It's possible to manage SQL Server with Transact-SQL (T-SQL).

[1]Click [New Query] on SQL Server Management Studio.
技术分享图片
[2]Database Engine Query Editor runs. Input T-SQL commands on here. For executing SQL, click [Run] button, then results are displayed.
技术分享图片
[3]

It's possible to operate on command prompt.

Windows authentication     ? sqlcmd -S [Server\Instance] -E
SQL Server authentication  ? sqlcmd -S [Server\Instance] -U [User] -P [Password]

技术分享图片




推荐阅读
  • CentOS7源码编译安装MySQL5.6
    2019独角兽企业重金招聘Python工程师标准一、先在cmake官网下个最新的cmake源码包cmake官网:https:www.cmake.org如此时最新 ... [详细]
  • 本文详细介绍了 Dockerfile 的编写方法及其在网络配置中的应用,涵盖基础指令、镜像构建与发布流程,并深入探讨了 Docker 的默认网络、容器互联及自定义网络的实现。 ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 深入理解 SQL 视图、存储过程与事务
    本文详细介绍了SQL中的视图、存储过程和事务的概念及应用。视图为用户提供了一种灵活的数据查询方式,存储过程则封装了复杂的SQL逻辑,而事务确保了数据库操作的完整性和一致性。 ... [详细]
  • 解决PHP与MySQL连接时出现500错误的方法
    本文详细探讨了当使用PHP连接MySQL数据库时遇到500内部服务器错误的多种解决方案,提供了详尽的操作步骤和专业建议。无论是初学者还是有经验的开发者,都能从中受益。 ... [详细]
  • 本文介绍了如何通过 Maven 依赖引入 SQLiteJDBC 和 HikariCP 包,从而在 Java 应用中高效地连接和操作 SQLite 数据库。文章提供了详细的代码示例,并解释了每个步骤的实现细节。 ... [详细]
  • 使用Vultr云服务器和Namesilo域名搭建个人网站
    本文详细介绍了如何通过Vultr云服务器和Namesilo域名搭建一个功能齐全的个人网站,包括购买、配置服务器以及绑定域名的具体步骤。文章还提供了详细的命令行操作指南,帮助读者顺利完成建站过程。 ... [详细]
  • PHP 编程疑难解析与知识点汇总
    本文详细解答了 PHP 编程中的常见问题,并提供了丰富的代码示例和解决方案,帮助开发者更好地理解和应用 PHP 知识。 ... [详细]
  • 本文详细记录了在基于Debian的Deepin 20操作系统上安装MySQL 5.7的具体步骤,包括软件包的选择、依赖项的处理及远程访问权限的配置。 ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • PyCharm下载与安装指南
    本文详细介绍如何从官方渠道下载并安装PyCharm集成开发环境(IDE),涵盖Windows、macOS和Linux系统,同时提供详细的安装步骤及配置建议。 ... [详细]
  • 技术分享:从动态网站提取站点密钥的解决方案
    本文探讨了如何从动态网站中提取站点密钥,特别是针对验证码(reCAPTCHA)的处理方法。通过结合Selenium和requests库,提供了详细的代码示例和优化建议。 ... [详细]
  • 1:有如下一段程序:packagea.b.c;publicclassTest{privatestaticinti0;publicintgetNext(){return ... [详细]
  • 本文深入探讨 MyBatis 中动态 SQL 的使用方法,包括 if/where、trim 自定义字符串截取规则、choose 分支选择、封装查询和修改条件的 where/set 标签、批量处理的 foreach 标签以及内置参数和 bind 的用法。 ... [详细]
  • Windows 系统下 MySQL 8.0.11 的安装与配置
    本文详细介绍了在 Windows 操作系统中安装和配置 MySQL 8.0.11 的步骤,包括环境准备、安装过程以及后续配置,帮助用户顺利完成数据库的部署。 ... [详细]
author-avatar
手机用户2602921033
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有