Re: Scripting creation of server alias

From: David Gugick (davidg-nospam_at_imceda.com)
Date: 12/06/04


Date: Mon, 6 Dec 2004 18:21:01 -0500

allancady@yahoo.com wrote:
> Does anyone know if there's a way to script creation of a server
> alias, as you can do using the Client Network Utility?

Do you mean from a T-SQL script? The utility just writes to the
registration database. Sniff the regdb while you perform adding a new
alias and see where it goes. Then you can use any programming tool or
just a .reg file to add the new data to everyones PC. From a domain this
is easy.

You can sniff the regdb using free tools from www.sysinternals.com

-- 
David Gugick
Imceda Software
www.imceda.com 


Relevant Pages

  • Re: How can I tell what protocols are enabled for the client?
    ... My question is on the Client Network Utility not on the Server Network Utility. ... Based on your reply, even I have only enabled TCP/IP on the General tab of the Client Network Utility, I will still able to connect to an alias which is setup using Named Pipes on the Alias tab of the Client Network Utility. ...
    (microsoft.public.sqlserver.connect)
  • RE: Name of the SQLInstance?
    ... Try using SQL Client Network Utility and creating an alias for your instance. ... The only other way I know of is to rename you machine to 'sqllocal' - that ...
    (microsoft.public.sqlserver.programming)
  • Re: Any suggestions on this error when trying to connect SQL Server 2000?
    ... SQL Server service may be down or hung ... Need to create an Alias using "Client network utility" specifying IP ...
    (microsoft.public.sqlserver.connect)
  • Re: Server alias
    ... "Tom Williams" wrote in message ... > an alias for one of our servers. ... Using the same "Client Network Utility", ... > How can I get rid of it? ...
    (microsoft.public.sqlserver.server)