PB9连接SQL Server 2005全面指南
需积分: 10 108 浏览量
更新于2024-09-07
收藏 352KB DOC 举报
"这篇文档详细介绍了如何使用PowerBuilder (PB9) 连接至SQL Server 2005的方法,包括必要的系统配置和SQL Server设置。"
在尝试使用PowerBuilder 9 (PB9) 连接至SQL Server 2005时,可能会遇到连接问题。以下是解决这些问题的关键步骤:
1. **复制ntwdblib.DLL**:为了能够配置DBMS为"MSS Microsoft SQL Server",需要将ntwdblib.DLL文件复制到C:\WINDOWS\system32目录下。
2. **启动SQL Server服务和关闭防火墙**:确保SQL Server服务已启动,同时关闭Windows防火墙,以便PB9能够顺利连接。
3. **检查1433端口状态**:使用`netstat -an`命令检查本地1433端口是否在监听。如果未启动,需要在"SQL Server配置管理器"中启用SQL Server 2005网络协议中的TCP/IP。
4. **配置TCP/IP协议**:在"SQL Server 2005网络协议"中,确保所有必要的IP地址都启用了,并且配置正确的端口号,通常是1433。
5. **配置远程连接**:在"SQL Server外围应用配置器"中,更改Database Engine的远程连接设置,选择"本地连接和远程连接",同时使用TCP/IP和named pipes。
6. **身份验证模式**:在"SQL Server企业管理器"中,将服务器的身份验证模式设置为"SQL Server和Windows身份验证模式"。
7. **管理登录账户**:在"安全性"->"登录名"下,确保SA用户或创建新账户,并设置适当的密码。
8. **解决UAC问题**:针对Windows 7用户,由于用户账户控制(UAC),可能需要以管理员权限运行"SQL Server企业管理器",或临时禁用UAC。不关闭防火墙的情况下,还需确保SQL Server Services和SQL Server Browser Services被添加到防火墙例外列表中,以及TCP端口SQLSer。
以上步骤是解决PB9连接SQL Server 2005问题的关键,执行这些操作后,应该能够成功建立连接。如果在过程中遇到错误,比如18456错误码,可参照上述解决UAC的方法来处理。在整个过程中,确保每一步都按照指示进行,避免因配置错误导致连接失败。
2013-05-27 上传
2010-11-01 上传
2023-10-23 上传
2023-07-14 上传
2023-07-17 上传
2023-06-09 上传
2023-07-14 上传
2023-05-31 上传
2023-07-10 上传
2023-07-14 上传
goodboy0532
- 粉丝: 0
- 资源: 8
最新资源
- 深入理解23种设计模式
- 制作与调试:声控开关电路详解
- 腾讯2008年软件开发笔试题解析
- WebService开发指南:从入门到精通
- 栈数据结构实现的密码设置算法
- 提升逻辑与英语能力:揭秘IBM笔试核心词汇及题型
- SOPC技术探索:理论与实践
- 计算图中节点介数中心性的函数
- 电子元器件详解:电阻、电容、电感与传感器
- MIT经典:统计自然语言处理基础
- CMD命令大全详解与实用指南
- 数据结构复习重点:逻辑结构与存储结构
- ACM算法必读书籍推荐:权威指南与实战解析
- Ubuntu命令行与终端:从Shell到rxvt-unicode
- 深入理解VC_MFC编程:窗口、类、消息处理与绘图
- AT89S52单片机实现的温湿度智能检测与控制系统