Microsoft Knowledge Base Email Alertz

KBAlertz.com: You deploy SQL Server 2000 by using the hard disk image of another computer where SQL Server 2000 is installed. If you use SQL Server Enterprise Manager to configure a replication distributor, the configuration of the distributor may not be...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]






Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Replication setup is not successful when SQL Server is deployed by using a disk image

Article ID:818334
Last Review:May 12, 2007
Revision:4.3
On This Page

SYMPTOMS

You deploy SQL Server 2000 by using the hard disk image of another computer where SQL Server 2000 is installed. If you use SQL Server Enterprise Manager to configure a replication distributor, the configuration of the distributor may not be successful, and you receive the following error message:
SQL Server Enterprise Manager could not configure '<Server>\<Instance>' as the Distributor for '<Server>\<Instance>' .
Error 18483: Could not connect to server '<Server>\<Instance>' because 'distributor_admin' is not defined as a remote login at the server.

Note If you perform these steps on the default instance of SQL Server 2000, the instance name does not appear in the error message.

You may also see that the value of the @@SERVERNAME SQL Server 2000 system global variable is different from the network name of the SQL Server 2000 computer.

Note If you experience this issue in SQL Server 2005, the error message is slightly different. You can also use the workaround that is mentioned in this article to work around the issue.

Back to the top

CAUSE

When you deploy SQL Server 2000 from a hard disk image of another computer where SQL Server 2000 is installed, the network name of the imaged computer is retained in the new installation. The incorrect network name causes the configuration of the replication distributor to fail. The same problem occurs if you rename the computer after SQL Server is installed.

Back to the top

WORKAROUND

To work around this problem, replace the SQL Server 2000 server name with the correct network name of the computer. To do so, follow these steps:
1.Log on to the computer where you deployed SQL Server 2000 from the disk image, and then run the following Transact-SQL statement in SQL Query Analyzer:
-- Use the Master database
USE master
GO

-- Declare local variables
DECLARE @serverproperty_servername 	varchar(100), 
	@servername 			varchar(100)

-- Get the value returned by the SERVERPROPERTY system function
SELECT @serverproperty_servername = CONVERT(varchar(100), SERVERPROPERTY('ServerName'))

-- Get the value returned by @@SERVERNAME global variable
SELECT @servername = CONVERT(varchar(100), @@SERVERNAME)

-- Drop the server with incorrect name
EXEC sp_dropserver @server=@servername

-- Add the correct server as a local server
EXEC sp_addserver @server=@serverproperty_servername, @local='local'
2.Restart the computer running SQL Server.
3.To verify that the SQL Server name and the network name of the computer are the same, run the following Transact-SQL statement in SQL Query Analyzer:
SELECT @@SERVERNAME, SERVERPROPERTY('ServerName')

Back to the top

MORE INFORMATION

You can use the @@SERVERNAME global variable or the SERVERPROPERTY('ServerName') function in SQL Server to find the network name of the computer running SQL Server. The ServerName property of the SERVERPROPERTY function automatically reports the change in the network name of the computer when you restart the computer and the SQL Server service. The @@SERVERNAME global variable retains the original SQL Server computer name until the SQL Server name is manually reset.

Back to the top

Steps to Reproduce the Problem

On the computer where you deployed SQL Server from a disk image, follow these steps:
1.Start SQL Server Enterprise Manager.
2.Expand SQL Server Group, and then click your SQL Server instance name.
3.On the Tools menu, point to Replication, and then click Configure Publishing, Subscribers, and Distribution.
4.In the Configure Publishing and Distribution Wizard for '<Server>\<Instance>' dialog box, click Next.
5.In the Select Distributor dialog box, click to select the Make '<Server>\<Instance>' its own Distributor; SQL Server will create a distribution database and log check box, and then click Next.
6.In the Configure SQL Server Agent dialog box, click Next.
7.In the Specify Snapshot Folder dialog box, click Next.

Note If you receive a message to confirm the snapshot folder path, click Yes.
8.In the Customize the Configuration dialog box, click to select the No, use the following default settings check box, and then click Next.
9.In the Completing the Configure Publishing and Distribution Wizard dialog box, click Finish.

Back to the top

REFERENCES

For more information about disk imaging and SQL Server installations, visit the following Microsoft Web sites:
http://msdn2.microsoft.com/en-us/library/aa197053(SQL.80).aspx (http://msdn2.microsoft.com/en-us/library/aa197053(SQL.80).aspx)
http://msdn2.microsoft.com/en-us/library/aa197071(SQL.80).aspx (http://msdn2.microsoft.com/en-us/library/aa197071(SQL.80).aspx)

Back to the top


APPLIES TO
•Microsoft SQL Server 2000 Standard Edition
•Microsoft SQL Server 2005 Standard Edition
•Microsoft SQL Server 2005 Developer Edition
•Microsoft SQL Server 2005 Enterprise Edition
•Microsoft SQL Server 2005 Express Edition
•Microsoft SQL Server 2005 Workgroup Edition

Back to the top

Keywords: 
kberrmsg kbreplication kbdeployment kbwizard kbserver kbsysadmin kbprb KB818334

Back to the top

   

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please