Re: linked server to another SQL SERVER via an aliased name

From: Jasper Smith (jasper_smith9_at_hotmail.com)
Date: 10/14/05


Date: Fri, 14 Oct 2005 20:03:45 +0100

If you specify @srvproduct='SQL Server' then this message is correct however
you can still use an alias by setting up a client alias on the server using
the Client Network Utility (Start>Run>cliconfg). You can then use that as
the @server parameter.

-- 
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"kevin" <kevin@discussions.microsoft.com> wrote in message 
news:8BF766F9-71DB-4D8D-97B0-DF81FF2F37BC@microsoft.com...
> using SqlServer 2K
> I want to create a linked server to another SQL SERVER 2K box, but I do 
> not
> want to use the actual server name as @server as this is dev and I have no
> idea what the final server name will be.  I would prefer to use an alias 
> thus
> making my SP portable.
>
> per BOL(Transact-SQL Reference - System Store Procedures -
> sp_addlinkedserver) I should be able to do this and even copied this from
> example A2, somewhat :).
>
> Can I do this, or is BOL a big fat lier?
>
> This
> EXEC sp_addlinkedserver
> @server='TP4',
> @srvproduct='SQL Server',
> @provider = 'SQLOLEDB',
> @datasrc = 'LV3KDEV02',
> @catalog = 'TruePayV3_0_Migration'
> returns this error
> Server: Msg 15428, Level 16, State 1, Procedure sp_addlinkedserver, Line 
> 67
> You cannot specify a provider or any properties for product 'SQL Server'. 


Relevant Pages

  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... DNS server: uksccmads02.jw-uk.jameswalker.co.uk ... Alias and glue records for forest GUIDs from server: ... Skipping site UK-CCM, this site is outside the scope provided ...
    (microsoft.public.windows.server.active_directory)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... You should run dnslint on uksccmads01. ... DNS server: uksccmads02.jw-uk.jameswalker.co.uk ... Alias and glue records for forest GUIDs from server: ...
    (microsoft.public.windows.server.active_directory)
  • Re: Connect to SQL Server from Workgroup Computer
    ... I opened Client Network Utility and in the Alias> ... Edit tab changed the name of the 'Server Alias' to something different from ... > I suspect SQL Server is not hearing the connection request. ...
    (microsoft.public.sqlserver.connect)
  • Re: AD replication not working on new DC
    ... DNS server: User Specified DNS Server ... Alias and glue records for forest GUIDs from server: ... Total number of CNAME records missing on this server: ...
    (microsoft.public.windows.server.active_directory)
  • Re: Server Alias - SQL Server Configuration Manager
    ... The alias is working on our test machine. ... do the changes exactly the same way as SQL Server Configuration Manager ... Tibor Karaszi, SQL Server MVP ... Is there a way to install SQL Server Configuration Manager without also ...
    (microsoft.public.sqlserver.tools)