我正在从 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!