|
Hi, I tried to define an alias on a server (as part of a database consolidation), but it doesn't seem to work. These are the steps I did:
Started SQLcmd.exe from a client as "sqlcmd -Snwgalias -E", but it's returning "could not open a connection to SQL server" Server is 64bit and so is client, so I created a 2nd alias (NWGALIAS2) under the "SQL Native Client 10.0 configuration" (I assume the is 64bit), but with no result. What am I doing wrong?
(comments are locked)
|
|
Create the alias on the client The problem is that the application which is using the database is installed on several laptops (being used by field engineers). If creating an alias locally is the option, I could also alter the connection definition locally. According to this link link text you could create an alias on the server also (first option)? It sounds stupid, but the article is not mentioning WHERE to define the alias.
May 22 '12 at 07:53 AM
Wilfred van Dijk
The client machine in the article has the Configuration Manager installed, which doesn't appear to match your environment. You mentioned that cliconfig works, but is not an option. If you are not allowed to change anything on the client machine, you can create a DNS entry for NWGALIAS that points back to the "real" server. If you are allowed to change something on the client, you can do the alias, change the application config file, or edit your hosts file with an entry for NWGALIAS that points to the "real" server to shortcut DNS.
May 22 '12 at 02:50 PM
KenJ
(comments are locked)
|
|
Is TCP an enabled protocol for the instance? Is the SQL Server Browser service running for the server? .. .. .. Now, this is local, would there be a need for DNS to have an entry that points client PCs to my IP address so they can get picked up by SQL Browser service and passed(via the alias) to my instance?
(comments are locked)
|
|
As per the MSDN / SQL Server documentation on Creating Server Aliases:
And the rest of that introductory paragraph makes it pretty clear that these are for client machines, rather than server-side setup, and this is confirmed by the structure on the left of the page, where it shows the following: etc, showing that this is part of the Client network configuration.
(comments are locked)
|
|
SQL Server Configuration Manager is not a tool which is installed on a client. So I assume you run this on a server. Running cliconfg.exe on a client and creating an alias works, but that's not an option for me. This alias trick was mentioned as a temporary solution, until we manually changed the connection definition on each laptop to the 'real' servername.
(comments are locked)
|

