SQL Server not configured for data access(未针对数据访问配置 SQL Server)
问题描述
我正在从 VB 6 应用程序运行 SQL Server 2005 数据库.我连接到数据库通过 ODBC DSN.
I'm running a SQL Server 2005 database from a VB 6 Application. I connect to the database through an ODBC DSN.
我将运行 SQL 服务器默认实例的计算机从软件"重命名为IT".然后我运行 sp_dropserver
和 sp_addserver
存储过程来重命名实例.
I renamed the computer on which I'm running the default instance of SQL server from 'Software' to 'IT'. I then ran the sp_dropserver
and sp_addserver
stored procedures to rename the instance.
重新启动 SQL Server 服务后,服务器能够使用新的 SQL Server 名称.
On restarting the SQL Server service, the server was able to pick up on the new SQL Server name.
将ODBC数据源名称配置为新名称后,连接正常.我能够运行我的应用程序并通过 ADO 记录集读取记录.但是我无法使用 .Update
方法更新任何记录集.我收到以下错误... SQL Server 未配置数据访问
After configuring the ODBC data source name to the new name, the connection was Ok. I'm able to run my application and read records through ADO record sets. However I'm unable to update any recordset using the .Update
method. I get the following error instead ... SQL Server not configured for data access
如何在重命名的服务器实例上启用数据访问?
How can I enable data access on the renamed server instance?
推荐答案
如何:重命名承载 SQL Server 2005 独立实例的计算机
您应该能够在任何链接服务器上运行它,但不能.它不是链接服务器.这是本地的.
You should be able to run this but not against any linked server. It's not a linked server. It's local.
EXEC sp_serveroption 'YourServer', 'DATA ACCESS', TRUE
这篇关于未针对数据访问配置 SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:未针对数据访问配置 SQL Server
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- SQL 临时表问题 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 更改自动增量起始编号? 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01