ODBC connection to SQL box - odd one
Discussion
Create the connection to 192.168.0.2 - no problems
Create the connection to TheServer.OurDomain.local - no problems
Create the connection to TheServer - No Worky. Could not be contected/access denied.
Ping TheServer - worky. Correct IP.
Odd, yes?? The obiouls answer here is to just do it in a way that works, but its not that easy unfortunatley
This is only on one machine BTW, on the same DHCP & AD as the rest. Any ideas?
Create the connection to TheServer.OurDomain.local - no problems
Create the connection to TheServer - No Worky. Could not be contected/access denied.
Ping TheServer - worky. Correct IP.
Odd, yes?? The obiouls answer here is to just do it in a way that works, but its not that easy unfortunatley
This is only on one machine BTW, on the same DHCP & AD as the rest. Any ideas?
Yep tried the hosts file, not got any client utils on this box here but that might be a good next step.
Its very strange, don't think its authentication because literally all I'm changing is the server name from server to server.domain.local and it works, no other options are touched. Yet I can ping server no problem, resolves to correct IP. The server is definatley up etc. cause umpteen other people are logged into it from the same app from the same n/w install.
I'l install the client utils and have a play around....
Its very strange, don't think its authentication because literally all I'm changing is the server name from server to server.domain.local and it works, no other options are touched. Yet I can ping server no problem, resolves to correct IP. The server is definatley up etc. cause umpteen other people are logged into it from the same app from the same n/w install.
I'l install the client utils and have a play around....mattley said:
Or in excel, Data => import external data => new database query, select your DSN, and the database should be available, any errors there can be a little more verbose and usefull.
Sweet, verbose would be good. 'Could not connect or access is denied' doesnt rule much out does it
Cheers for the suggestions all!!
you could try the old fashioned way - via cmd line
open a cmd window and type the following if you have the client tools installed on the machine :-
isql -U<username> -P<password> -S<sql servername>
if you get an isql command prompt back, you have a valid sql login.
now run this to confirm that you are on the correct SQL Server
1> select @@servername
2> go
If you can't login this way, you need to get a valid login correctly created. If you have a valid login, it's liklely that you set up the ODBC connection incorrectly or it may be a DNS issue not being correctly resolved. If the SQL Server is running on a cluster, you need to point to port 1433 by ticking that option in the odbc settings or you won't be able to login to the SQL server.
open a cmd window and type the following if you have the client tools installed on the machine :-
isql -U<username> -P<password> -S<sql servername>
if you get an isql command prompt back, you have a valid sql login.
now run this to confirm that you are on the correct SQL Server
1> select @@servername
2> go
If you can't login this way, you need to get a valid login correctly created. If you have a valid login, it's liklely that you set up the ODBC connection incorrectly or it may be a DNS issue not being correctly resolved. If the SQL Server is running on a cluster, you need to point to port 1433 by ticking that option in the odbc settings or you won't be able to login to the SQL server.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


