热门标签 | 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]

技术分享图片




推荐阅读
  • Skywalking系列博客1安装单机版 Skywalking的快速安装方法
    本文介绍了如何快速安装单机版的Skywalking,包括下载、环境需求和端口检查等步骤。同时提供了百度盘下载地址和查询端口是否被占用的命令。 ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • 使用Ubuntu中的Python获取浏览器历史记录原文: ... [详细]
  • 解决VS写C#项目导入MySQL数据源报错“You have a usable connection already”问题的正确方法
    本文介绍了在VS写C#项目导入MySQL数据源时出现报错“You have a usable connection already”的问题,并给出了正确的解决方法。详细描述了问题的出现情况和报错信息,并提供了解决该问题的步骤和注意事项。 ... [详细]
  • 本文详细介绍了MySQL表分区的创建、增加和删除方法,包括查看分区数据量和全库数据量的方法。欢迎大家阅读并给予点评。 ... [详细]
  • Python瓦片图下载、合并、绘图、标记的代码示例
    本文提供了Python瓦片图下载、合并、绘图、标记的代码示例,包括下载代码、多线程下载、图像处理等功能。通过参考geoserver,使用PIL、cv2、numpy、gdal、osr等库实现了瓦片图的下载、合并、绘图和标记功能。代码示例详细介绍了各个功能的实现方法,供读者参考使用。 ... [详细]
  • Go GUIlxn/walk 学习3.菜单栏和工具栏的具体实现
    本文介绍了使用Go语言的GUI库lxn/walk实现菜单栏和工具栏的具体方法,包括消息窗口的产生、文件放置动作响应和提示框的应用。部分代码来自上一篇博客和lxn/walk官方示例。文章提供了学习GUI开发的实际案例和代码示例。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • Oracle Database 10g许可授予信息及高级功能详解
    本文介绍了Oracle Database 10g许可授予信息及其中的高级功能,包括数据库优化数据包、SQL访问指导、SQL优化指导、SQL优化集和重组对象。同时提供了详细说明,指导用户在Oracle Database 10g中如何使用这些功能。 ... [详细]
  • 原文地址:https:www.cnblogs.combaoyipSpringBoot_YML.html1.在springboot中,有两种配置文件,一种 ... [详细]
  • 【Windows】实现微信双开或多开的方法及步骤详解
    本文介绍了在Windows系统下实现微信双开或多开的方法,通过安装微信电脑版、复制微信程序启动路径、修改文本文件为bat文件等步骤,实现同时登录两个或多个微信的效果。相比于使用虚拟机的方法,本方法更简单易行,适用于任何电脑,并且不会消耗过多系统资源。详细步骤和原理解释请参考本文内容。 ... [详细]
  • 如何在服务器主机上实现文件共享的方法和工具
    本文介绍了在服务器主机上实现文件共享的方法和工具,包括Linux主机和Windows主机的文件传输方式,Web运维和FTP/SFTP客户端运维两种方式,以及使用WinSCP工具将文件上传至Linux云服务器的操作方法。此外,还介绍了在迁移过程中需要安装迁移Agent并输入目的端服务器所在华为云的AK/SK,以及主机迁移服务会收集的源端服务器信息。 ... [详细]
  • 本文介绍了在使用Python中的aiohttp模块模拟服务器时出现的连接失败问题,并提供了相应的解决方法。文章中详细说明了出错的代码以及相关的软件版本和环境信息,同时也提到了相关的警告信息和函数的替代方案。通过阅读本文,读者可以了解到如何解决Python连接服务器失败的问题,并对aiohttp模块有更深入的了解。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • Java在运行已编译完成的类时,是通过java虚拟机来装载和执行的,java虚拟机通过操作系统命令JAVA_HOMEbinjava–option来启 ... [详细]
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社区 版权所有