We help IT Professionals succeed at work.

ODBC error Connecting to SQL 2008 DB

Medium Priority
1,874 Views
Last Modified: 2012-06-27
after creating a sql db and using the sa account to login via a pc or thin client i get this error: Connection failed:
SQLState:'01000'
SQL Server Error: 231
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
Copnnection failed:
SQLState: '08001'
SQL Server Error: 17
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

If i log in to the server and run the application it works fine and i can connect to the DB via ODBC just fine using the same information?
Comment
Watch Question

Paul JacksonSoftware Engineer
CERTIFIED EXPERT
Top Expert 2011

Commented:
Make sure if you have a firewall that port 1433 is open.

In SQL Server MAnagement studio on the server, right click the server name and select properties, on the connections page ensure remote connections is enabled.

In SQL Server Surface Area Configuration, select Surface area configuration for Services and Connections, UNder database engine > remote connection ensure setting is set to Local and Remote connections.
Montana ManDigital Leader

Author

Commented:
Where do i go for the SQL Server Surface Area Configuration?  Remote connections is enabled.  Thank you for helping.
Paul JacksonSoftware Engineer
CERTIFIED EXPERT
Top Expert 2011

Commented:
Start > All Programs > Microsoft SQL Server 2008 > Configuration
Montana ManDigital Leader

Author

Commented:
I have a configuration Tools>
         >Reporting Services Configuration Manager
         >SQL Server Configuration Manager
                 >SQL Server Services
                 >SQL Server Network Configuation (32bit)
                 >SQL Native Client 10.0 Configuation (32bit)
                 >SQL Server Network Configuation
                 >SQL Native Client 10.0 Configuration
         >SQL Server Error and Usage Report
         >SQL Server Installation Center (64-bit)
Software Engineer
CERTIFIED EXPERT
Top Expert 2011
Commented:
Montana ManDigital Leader

Author

Commented:
Thanks, all of that is set correctly.  I think it may have something to do with the sa account and setting up the ODBC access?  Is there a way to see where in the ODBC configuration where it maybe dieing?