views:

1676

answers:

2

I m running an SQL Server 2005 database from a VB 6 Application. I connect to the database thro ODBC DSN.

I renamed the computer on which Im running the a default instance of SQL server from 'Software' to 'IT' .I then run the 'sp_dropserver' & 'sp_addserver' stored procedures to rename the instance. On restarting the SQL server service, the server was able to pick up on the new SQL server name.

After configuring ODBC datasource name to the new name the connection was ok. Im able to run my application and read records thro ADO recordsets. However Im 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?

+1  A: 

How to: Rename a Computer that Hosts a Stand-Alone Instance of 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
gbn
+1  A: 

This post is quite old, but maybe someone will come across it. I wrote an blog post about this option, it can be set on local and linked servers.

Piotr Rodak