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

[经验分享] 如何创建SQL Server 2008的数据库

[复制链接]

尚未签到

发表于 2016-5-22 12:02:45 | 显示全部楼层 |阅读模式
step 1.打开SQL Server Management Studiok, 在tree上右键单击New Database.

step 2.为了供网络上的客户端访问, 需要设置端口和协议, 如下:

All network protocols are installed by SQL Server Setup, but may or may not be enabled.

Use SQL Server Configuration Manager to enable or disable network protocols. The Database Engine must be stopped and restarted for the change to take effect.

To enable a server network protocol

1. In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration.

2. In the console pane, click Protocols for <instance name>.

  2.1 In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear in the format IP1, IP2, up to IPAll. One of these is for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you want to configure.

  2.2 If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.

  2.3 In the IPn Properties area box, in the TCP Port box, type the port number you want this IP address to listen on, and then click OK.

3. In the details pane, right-click the protocol you want to change, and then click Enable or Disable.

4. In the console pane, click SQL Server Services.

5. In the details pane, right-click SQL Server (<instance name>), and then click Restart, to stop and restart the SQL Server service.

step 3. 更改登录方式为混合验证方式

  1. 打开企业管理器,依次展开服务器组,用右键单击软件使用的服务器。
  2. 在弹出的快捷菜单,执行Properties命令,出现Server Properties对话框。
单击Security标签,在Security选项框中,将“Windows Authentication mode改为“SQL Server and Windows Authentication mode
  3. 设置完成后,单击“确定”按钮,系统提示重新启动服务器。
  4. 单击“是”按钮,完成对身份验证模式的修改。
  说明:在 Windows XP操作系统与Windows 2000操作系统下修改SQL Server 2000, 2008身份验证模式相同,但在Windows 98操作系统下,却不能通过以上方法对身份验证模式进行修改。因为在Windows 98操作系统下,安装SQL Server 2000时,系统只支持“混合模式”身份验证模式。

step 4. 如何修改SQL Server 2008 系统管理员sa的登录密码?
  
  1. 打开企业管理器,依次展开服务器组,然后展开服务器。
  2. 展开Security文件夹,单击Login,然后用右键单击或直接双击Sa,选择properties命令。
  3. 弹出SQL Server authentication对话框。在SQL Server authentication密码栏,系统对sa没有默认的密码, 删除型号, 输入最新密码。
  4. 单击“确定”按钮,弹出“确认密码”对话框,再输一遍登录密码。
  5. 单击“确定”按钮,完成对Sa登录密码的修改。在JDBC的url中可以使用sa登陆.


PS: SQL Server 2008的连接URL和以前版本不一样,在2000中为:url="jdbc:microsoft:sqlserver://<hostname>:1433;DatabaseName=<dbname>";
在2008中为:url="jdbc:sqlserver://<hostname>:1433;DatabaseName=<dbname>".

运维网声明 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-220330-1-1.html 上篇帖子: WIZnet员工SQL Server 2008培训笔记(四) 下篇帖子: 在使用Windows Server 2008 中的“任务计划”和“Microsoft 讲述人”功能时想起了一些人和事
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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

扫描微信二维码查看详情

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


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


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


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



合作伙伴: 青云cloud

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