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

技术分享图片




推荐阅读
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • Skywalking系列博客1安装单机版 Skywalking的快速安装方法
    本文介绍了如何快速安装单机版的Skywalking,包括下载、环境需求和端口检查等步骤。同时提供了百度盘下载地址和查询端口是否被占用的命令。 ... [详细]
  • 本文介绍了Hyperledger Fabric外部链码构建与运行的相关知识,包括在Hyperledger Fabric 2.0版本之前链码构建和运行的困难性,外部构建模式的实现原理以及外部构建和运行API的使用方法。通过本文的介绍,读者可以了解到如何利用外部构建和运行的方式来实现链码的构建和运行,并且不再受限于特定的语言和部署环境。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • 本文介绍了在Mac上安装Xamarin并使用Windows上的VS开发iOS app的方法,包括所需的安装环境和软件,以及使用Xamarin.iOS进行开发的步骤。通过这种方法,即使没有Mac或者安装苹果系统,程序员们也能轻松开发iOS app。 ... [详细]
  • 本文讨论了如何使用Web.Config进行自定义配置节的配置转换。作者提到,他将msbuild设置为详细模式,但转换却忽略了带有替换转换的自定义部分的存在。 ... [详细]
  • 安装mysqlclient失败解决办法
    本文介绍了在MAC系统中,使用django使用mysql数据库报错的解决办法。通过源码安装mysqlclient或将mysql_config添加到系统环境变量中,可以解决安装mysqlclient失败的问题。同时,还介绍了查看mysql安装路径和使配置文件生效的方法。 ... [详细]
  • 云原生边缘计算之KubeEdge简介及功能特点
    本文介绍了云原生边缘计算中的KubeEdge系统,该系统是一个开源系统,用于将容器化应用程序编排功能扩展到Edge的主机。它基于Kubernetes构建,并为网络应用程序提供基础架构支持。同时,KubeEdge具有离线模式、基于Kubernetes的节点、群集、应用程序和设备管理、资源优化等特点。此外,KubeEdge还支持跨平台工作,在私有、公共和混合云中都可以运行。同时,KubeEdge还提供数据管理和数据分析管道引擎的支持。最后,本文还介绍了KubeEdge系统生成证书的方法。 ... [详细]
  • imx6ull开发板驱动MT7601U无线网卡的方法和步骤详解
    本文详细介绍了在imx6ull开发板上驱动MT7601U无线网卡的方法和步骤。首先介绍了开发环境和硬件平台,然后说明了MT7601U驱动已经集成在linux内核的linux-4.x.x/drivers/net/wireless/mediatek/mt7601u文件中。接着介绍了移植mt7601u驱动的过程,包括编译内核和配置设备驱动。最后,列举了关键词和相关信息供读者参考。 ... [详细]
  • 本文讨论了如何在dotnet桌面(Windows)应用程序中添加图标。作者提到可以使用dotnet命令行工具与resource.rc文件一起使用来为标准.NET核心应用程序添加图标。作者还介绍了在创建控制台应用程序时如何编辑projeto1.csproj文件来添加图标。 ... [详细]
  • 如何搭建Java开发环境并开发WinCE项目
    本文介绍了如何搭建Java开发环境并开发WinCE项目,包括搭建开发环境的步骤和获取SDK的几种方式。同时还解答了一些关于WinCE开发的常见问题。通过阅读本文,您将了解如何使用Java进行嵌入式开发,并能够顺利开发WinCE应用程序。 ... [详细]
  • 本文介绍了在CentOS上安装Python2.7.2的详细步骤,包括下载、解压、编译和安装等操作。同时提供了一些注意事项,以及测试安装是否成功的方法。 ... [详细]
  • 树莓派语音控制的配置方法和步骤
    本文介绍了在树莓派上实现语音控制的配置方法和步骤。首先感谢博主Eoman的帮助,文章参考了他的内容。树莓派的配置需要通过sudo raspi-config进行,然后使用Eoman的控制方法,即安装wiringPi库并编写控制引脚的脚本。具体的安装步骤和脚本编写方法在文章中详细介绍。 ... [详细]
  • 本文记录了在vue cli 3.x中移除console的一些采坑经验,通过使用uglifyjs-webpack-plugin插件,在vue.config.js中进行相关配置,包括设置minimizer、UglifyJsPlugin和compress等参数,最终成功移除了console。同时,还包括了一些可能出现的报错情况和解决方法。 ... [详细]
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社区 版权所有