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

技术分享图片




推荐阅读
  • 本文深入分析了Django框架中模型应用与非模型应用的区别与应用场景,详细对比了两者在数据处理、性能表现及开发灵活性等方面的特点。同时,文章还介绍了如何在视图函数中有效利用这些特性,结合PostgreSQL、MySQL、SQLite3和Oracle等不同数据库的配置与使用方法,为开发者提供了全面的参考指南。 ... [详细]
  • Java 零基础入门:SQL Server 学习笔记(第21篇)
    Java 零基础入门:SQL Server 学习笔记(第21篇) ... [详细]
  • Django框架下的对象关系映射(ORM)详解
    在Django框架中,对象关系映射(ORM)技术是解决面向对象编程与关系型数据库之间不兼容问题的关键工具。通过将数据库表结构映射到Python类,ORM使得开发者能够以面向对象的方式操作数据库,从而简化了数据访问和管理的复杂性。这种技术不仅提高了代码的可读性和可维护性,还增强了应用程序的灵活性和扩展性。 ... [详细]
  • MySQL 数据操作:增、删、查、改全面解析
    MySQL 数据操作:增、删、查、改全面解析 ... [详细]
  • 在使用sbt构建项目时,遇到了“对象apache不是org软件包的成员”的错误。本文详细分析了该问题的原因,并提供了有效的解决方案,包括检查依赖配置、清理缓存和更新sbt插件等步骤,帮助开发者快速解决问题。 ... [详细]
  • 欢迎来到Netgen新时代:探索网络生成技术的无限可能
    欢迎进入Netgen的新时代:探索网络生成技术的无限潜力。本文将详细介绍如何编译下载的Netgen源代码,生成Netgen程序,并提供开发所需的库nglib。此外,还将探讨Netgen在现代网络设计与仿真中的应用前景,以及其在提高网络性能和可靠性方面的关键作用。 ... [详细]
  • 在Python 3环境中,当无法连接互联网时,可以通过下载离线模块包来实现模块的安装。具体步骤包括:首先从PyPI网站下载所需的模块包,然后将其传输到目标环境,并使用`pip install`命令进行本地安装。此方法不仅适用于单个模块,还支持依赖项的批量安装,确保开发环境的完整性和一致性。 ... [详细]
  • 在处理大规模并发请求时,传统的多线程或多进程模型往往无法有效解决性能瓶颈问题。尽管它们在处理小规模任务时能提升效率,但在高并发场景下,系统资源的过度消耗和上下文切换的开销会显著降低整体性能。相比之下,Python 的 `asyncio` 模块通过协程提供了一种轻量级且高效的并发解决方案。本文将深入解析 `asyncio` 模块的原理及其在实际应用中的优化技巧,帮助开发者更好地利用协程技术提升程序性能。 ... [详细]
  • 可转债数据智能抓取与分析平台优化
    本项目旨在优化可转债数据的智能抓取与分析平台。通过爬取集思录上的可转债信息(排除已发布赎回的债券),并结合安道全教授提出的三条安全线投资策略,新增了建仓线、加仓线和重仓线,以提供更精准的投资建议。 ... [详细]
  • Java 8 引入了 Stream API,这一新特性极大地增强了集合数据的处理能力。通过 Stream API,开发者可以更加高效、简洁地进行集合数据的遍历、过滤和转换操作。本文将详细解析 Stream API 的核心概念和常见用法,帮助读者更好地理解和应用这一强大的工具。 ... [详细]
  • PHP连接MySQL的三种方法及预处理语句防止SQL注入的技术详解
    PHP连接MySQL的三种方法及预处理语句防止SQL注入的技术详解 ... [详细]
  • phpMyAdmin 忽略了套接字定义,导致连接配置失效 ... [详细]
  • 因缺失VCRUNTIME140_1.dll文件导致代码无法运行,建议重新安装程序以解决问题
    因缺失VCRUNTIME140_1.dll文件导致代码无法运行,建议重新安装程序以解决问题 ... [详细]
  • SQL字符串操作:深入解析 instr、substr 和 like 函数的应用与区别
    在进行SQL字符串操作时,经常会用到 `instr`、`substr` 和 `like` 函数。本文详细解析了这些函数的应用场景和区别。特别是 `like` 函数在处理文件路径匹配时可能会遇到的问题,如通配符 `_` 和 `%` 的使用。其中,`%` 可以匹配零个或多个任意字符,而 `_` 则匹配任意单个字符。通过实例和文档解析,帮助读者更好地理解和应用这些函数。 ... [详细]
  • Java 中使用 OptionalDouble 的 (Double) 方法示例解析 ... [详细]
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社区 版权所有