
上QQ阅读APP看书,第一时间看更新
2.3 SQL Server的管理工具
启动“开始”菜单中的SQL Sever 2008,如图2.26所示。

图2.26 “开始”菜单
单击SQL Server Management Studio,打开图2.27所示的对话框。

图2.27 “连接到服务器”界面
填写或选择相应的信息后,单击“连接”按钮,进入图2.28所示的界面。通过管理工具便可进行创建对象、管理对象等操作了。

图2.28 管理工具
若要数据库被外部应用程序所用,需做如下设置。启动图2.29中的“SQL Server配置管理器”。

图2.29 启动“SQL Server配置管理器”
单击“SQL Server配置管理器”后进入图2.30所示的界面,必须保证椭圆圈起的选项处于“正在运行”状态,数据库才可以正常工作。

图2.30 SQL Server配置管理器
选择“SQL Server网络配置”下的“MSSQLSERVER的协议”,如图2.31所示。

图2.31 “MSSQLSERVER的协议”界面
将“TCP/IP”的状态保持为“已启用”,并双击“TCP/IP”,进入图2.32所示的界面。

图2.32 “TCP/IP属性”窗口
将图2.32中所有的TCP端口的值都设为1433,单击“确定”按钮。至此,数据库就可以被外部应用程序通过1433端口正常访问到了。