设为首页 收藏本站
查看: 723|回复: 0

[经验分享] Database SQL Server 2017

[复制链接]

尚未签到

发表于 2018-10-12 07:25:47 | 显示全部楼层 |阅读模式
  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. DSC0000.png [2]After downloading ISO file, mount it, then you can see files in ISO. Run [setup.exe] to manage installation and others. DSC0001.png [3]After running [setup.exe], following screen is shown, Run [System Configuration Checker] to check your System. DSC0002.png [4]This is the result of [System Configuration Checker] on this environment. DSC0003.png   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. DSC0004.png [2]Select an Edition of SQL Server you'd like to install. DSC0005.png [3]Read License terms well and check a box [I accept the license terms] to agree with it. DSC0006.png [4]Select to check important update or not. DSC0007.png [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. DSC0008.png [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]. DSC0009.png [7]This is the section of Instance Configuration. Select [Default Instance] or [Named Instance]. (Keep default on this example) DSC00010.png [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. DSC00011.png [9]This is the section of Collation Settings. Change them for your requirements. (Keep default on this example) DSC00012.png [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. DSC00013.png [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. DSC00014.png [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. DSC00015.png [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. DSC00016.png [14]This is the section of Analysys Services Configurations. Specify Administration Account of Analysys Services. DSC00017.png [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. DSC00018.png [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. DSC00019.png [17]This is the section of Distributed>[18]This is the section of Distributed>[19]Verify selection of features and it it's OK, Click [Install] button. DSC00020.png [20]Installation Starts. DSC00021.png [21]After finishing Installation, Click [Close] button to complete. DSC00022.png   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. DSC00023.png [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.

DSC00024.png [4]Just connected. It's possible to manage and configure SQL Server on here. DSC00025.png [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].

DSC00026.png [6]Select [Security] on the left pane and check a box [SQL Server and Windows Authentication Mode] and click [OK] button. DSC00027.png [7]Open [Security] - [Login] on the right pane and right-click [sa] to open [Properties].  [sa] is the SQL Server admin user.
DSC00028.png [8][sa]'s password is set automatically, so change it you like. Next, Move to [Status] on the left pane. DSC00029.png [9]Check a box [Enabled] for [Login] section and click [OK] button. DSC00030.png [10]Right-click instance name and select [Restart] to apply changes. DSC00031.png [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.
DSC00032.png [12]Just Connected with SQL Server Authentication. DSC00033.png

  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. DSC00034.png [2]Database Engine Query Editor runs. Input T-SQL commands on here. For executing SQL, click [Run] button, then results are displayed. DSC00035.png [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]
DSC00036.png

  



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-620509-1-1.html 上篇帖子: SQL Server分页查询语句 下篇帖子: SQL Server 2008数据库快照技术(八)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表