Avatar of baytowel
baytowel
Flag for United States of America asked on

Connect to sql 2019 failing

We recently installed sql 2019.  We are trying to create an odbc from a windows 2008 server but it fails with error 17.  Our knowledge of sql server is minimal so we are unsure how to proceed.  We can connect from the 2008 server to the 2019 server using remote desktop.

How can we create a working odbc?

thanks.odbc connect error
Microsoft SQL ServerDesktopsWindows OSWindows Server 2008SQL

Avatar of undefined
Last Comment
baytowel

8/22/2022 - Mon
Éric Moreau

looks like you haven't enabled the TCP IP protocol for the new server
Éric Moreau

baytowel

ASKER
TCP IP was enabled on the sql server.  After disabling it and then enabling it the sql service was restarted.  Using odbc driver Sql Native the connection cannot find the server.



This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Éric Moreau

But it is clear that you are not using TCP IP to access the database. What is your connection string? You can specify to use TCP IP in your connection string by adding "Network Library=DBMSSOCN".

Why use ODBC in 2020 to access SQL Server? 
ASKER CERTIFIED SOLUTION
baytowel

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.