Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

prob with sql
Dear all,
i have server wihch is running sql server
and users are using it .
now i want to change
the server name . if i change server name
sql server name will remain or not ?
if it remains then how can i change it ?
coz users regiseter it by name ..
any help will be appreicated .......



Report this thread to moderator Post Follow-up to this message
Old Post
Vivek
08-31-05 08:23 AM


RE: prob with sql
Hi

If you change the network name of the server, sql server will need to be
updated by
dropping the old server and re-adding the new one. Try something like the
following using Query Analyser on the server:

DECLARE @server  sysname,	@newservern
ame sysname

SELECT @server = @@SERVERNAME, @newservername = HOST_NAME()
SELECT @@SERVERNAME AS [Old Server Name]

EXEC ( 'sp_dropserver ' + @server )

EXEC ( 'sp_addserver ' + @newservername + ', local' )
GO

SELECT @@SERVERNAME AS [New Server Name]

John

"Vivek" wrote:

> Dear all,
>              i have server wihch is running sql server
>              and users are using it .
>                                             now i want to change
>               the server name . if i change server name
>               sql server name will remain or not ?
>                if it remains then how can i change it ?
>                coz users regiseter it by name ..
>                 any help will be appreicated .......
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
John Bell
08-31-05 08:23 AM


Re: prob with sql
Hi,
I u will change the name of the registration name of the sql srever
then it will not effect . but if u have created a linked server then u
have to drop  it and recreate it again.

from
sufian


John Bell  wrote:[color=darkred
]
> Hi
>
> If you change the network name of the server, sql server will need to be
> updated by
> dropping the old server and re-adding the new one. Try something like the
> following using Query Analyser on the server:
>
> DECLARE @server  sysname,	@newservern
ame sysname
>
> SELECT @server = @@SERVERNAME, @newservername = HOST_NAME()
> SELECT @@SERVERNAME AS [Old Server Name]
>
> EXEC ( 'sp_dropserver ' + @server )
>
> EXEC ( 'sp_addserver ' + @newservername + ', local' )
> GO
>
> SELECT @@SERVERNAME AS [New Server Name]
>
> John
>
> "Vivek" wrote:
> 


Report this thread to moderator Post Follow-up to this message
Old Post
doller
08-31-05 12:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:52 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006