Quantcast
Viewing all articles
Browse latest Browse all 15889

Database Servername Issue

Hello All,

I have my database server name as SQLTest01 and I am able to RDP to it with the name. ANd also all applications are connected to it for a long time now. However when I run

SELECT @@SERVERNAME AS 'Server Name'

I get a different name (SQLServer000). Is there a way that I can change this to SQLtest01 through a sql server script. The reason I want to change the name is I am getting an error when I am trying to do replication. Also I am not able to connect to this server from SSMS with name SQLServer000 but am able to connect with SQLTest01.

TITLE: New Publication Wizard
------------------------------

SQL Server is unable to connect to server 'sqltest01'.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1&EvtSrc=Microsoft.SqlServer.Management.UI.PubWizardErrorSR&EvtID=CantConnect&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'SQLSERVER000'. (Replication.Utilities)

------------------------------
BUTTONS:

OK
------------------------------

Thanks



Viewing all articles
Browse latest Browse all 15889

Trending Articles