RPC Error in AD Migrated PC
While Execute RPC Script in AD Migrated PC it shows error message.
The same RPC Query Execution error in SQL. The server 'Server Name' does not exist. Use SP_helpserver to shaow available servers.
Solution
Rename the SQL Server first using the below query
Check SQL Server Name
SELECT @@SERVERNAME
Default Instance for Drop / Add Server
EXEC sp_dropserver 'Your_OLD_Computer_Name'
GO
EXEC sp_addserver 'Your_NEW_Computer_Name', 'local'
GO
- Restart the SQL Server services.
- Execute the below query in each instance to verify the updated system metadata.
Check the renamed server name
SELECT @@SERVERNAMEExecute Below Mentioned query
exec sp_serveroption @server='Your_NEW_Computer_Name', @optname='rpc', @optvalue='true'
go
exec sp_serveroption @server='Your_NEW_Computer_Name', @optname='rpc out', @optvalue='true'
go
Now you can execute the RPC Tool / Query to Update SQL
Post a Comment