未针对数据访问配置 SQL Server

SQL Server not configured for data access(未针对数据访问配置 SQL Server)
本文介绍了未针对数据访问配置 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_dropserversp_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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Number of working days between two dates(两个日期之间的工作日数)
How do I use dateadd to get the first day of last year?(如何使用 dateadd 获取去年的第一天?)
SQL- Count occurrences of a specific word within all stored procedures(SQL- 计算所有存储过程中特定单词的出现次数)
SQL query to make a column of numbers a string(使一列数字成为字符串的 SQL 查询)
T-SQL: Best way to replace NULL with most recent non-null value?(T-SQL:用最新的非空值替换 NULL 的最佳方法?)
Count days in date range with set of exclusions which may overlap(使用一组可能重叠的排除项计算日期范围内的天数)