It's easy enough to add a remote server through Enterprise Manager.
And it's easy enough to do it in Query Analyzer:
I want to connect to one of our servers that doesn't have an alpha network name, just an IP address. But I want to use an alpha server name so my direct references to the server don't have to be [10.1.2.3].database.Owner.Table. I can't figure it out.
Errors:
- You cannot specify a provider or any properties for product 'SQL Server'.
- You must specify a provider name with this set of properties.
- '(null)' is an invalid product name.
Help please? I'm also not feeling good at the moment so maybe I am less than scintillating right now. Perhaps even rather matte.
And it's easy enough to do it in Query Analyzer:
Code:
sp_addlinkedserver
'serverName',
N'SQL Server'
I want to connect to one of our servers that doesn't have an alpha network name, just an IP address. But I want to use an alpha server name so my direct references to the server don't have to be [10.1.2.3].database.Owner.Table. I can't figure it out.
Code:
sp_addlinkedserver
@server='ArbitraryServerName' -- NOT the server's address
, @srvproduct = N'SQL Server'
, @datasrc = '10.1.2.3' -- The real address of the server
, @provider = 'SQLOLEDB'
, @catalog = 'DatabaseName'
Errors:
- You cannot specify a provider or any properties for product 'SQL Server'.
- You must specify a provider name with this set of properties.
- '(null)' is an invalid product name.
Help please? I'm also not feeling good at the moment so maybe I am less than scintillating right now. Perhaps even rather matte.