question

Cidr-4920 avatar image
0 Votes"
Cidr-4920 asked AmeliaGu-msft commented

Connection Data Source name

Hi,

I'm a little stumped here. I have a server I inherited that allows connections from an alias. The windows server is hosted on an AWS EC2 instance.

AWS EC2 Server host name = sql123
I can also connect using = cubes.com (as in connecting to ssas/sql engine or connecting using client tools-excel- using the connection string Data Source)
cubes.com allows the connection string to remain the same for users if the data source is moved to another server.

I thought it was an alias in the DNS but I can't see this set up. Is there anywhere else I should be looking?

Any help would be appreciated.

Thanks

sql-server-generalsql-server-analysis-services
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Cidr-4920,

Did the answers help you?
Please feel free to let us know if you have any other question.
If you find any post in the thread is helpful, you could kindly accept it as answer.

Best Regards,
Amelia

0 Votes 0 ·
OlafHelper-2800 avatar image
0 Votes"
OlafHelper-2800 answered Cidr-4920 commented

An alias can be defined in "hosts" files, located in folder
C:\Windows\System32\drivers\etc\
it's a simple text file with host name + IP address. => Host Names and IP Addresses

For SQL database engine you can define a "SQL Alias" on the client machine
Create or Delete a Server Alias for Use by a Client


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for helping. It's good to know about the host file. Unfortunately, those options don't have the alias that's being used in the connections. I've also checked AWS to see if it's in the NS but there is nothing there with 'cube.com'

0 Votes 0 ·
AmeliaGu-msft avatar image
0 Votes"
AmeliaGu-msft answered

Hi Cidr-4920,
Welcome to Microsoft Q&A.
Could you please share us the connection string you are using?
I think you may use the Fully Qualified Domain Name (FQDN) to connect to SQL Server.
For default instance, the format is computer_name.domain_name .
You can go to Control Panel –>System and Security –> System-> Computer name, domain and workgroup settings to check if the domain name is cubes.com.
108003-image.png
You also can check it from the Domain Controller-> DNS manager->Forward Lookup Zones->domain name-> right-click the host name->Properties.


108062-image.png

108063-image.png

Best Regards,
Amelia


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




image.png (9.1 KiB)
image.png (49.0 KiB)
image.png (10.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.