OS X MSSQL Connection

Any of the experts out there have a way to connect to SQL Server from OS X without adding the iODBC?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mark BullockQA EngineerCommented:
What is your goal? Do you want to run an application on Mac OS X or run SQL queries or write an application or ...?

If you are using Java, you can connect via JDBC.
xoxomosAuthor Commented:
The first goal would be to get tsql to return a prompt ( >) rather that counting from 1 - 149 and bombing out.  Next I would want to be able to write queries.  Next learn some python coding.  
There is an application, DBVisualizer, that uses JDBC.  Made one unsuccessful attempt with that yesterday and i'll be trying to determine why today.
xoxomosAuthor Commented:
Attempting to connect to SQLServers from OSX
A206394:~ ctaylor$ tsql -H warehouse2 -U sa -P master! -p 1433
tsql -H warehouse2.csueastbay.edu -U sa -P masteping warehouse2 -p 1433
Missing argument -p, looking for default instance ... found default instance, port 1433
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
Msg 18456 (severity 14, state 1) from [warehouse2] Line 50135040:
      "Login failed for user 'sa'."
Error 20020 (severity 9):
      Bad token from the server: Datastream processing out of sync
Error 20002 (severity 9):
      Adaptive Server connection failed
There was a problem connecting to the server
A206394:~ ctaylor$ tsql -H -U sa -P Indigent -p 1433
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
149Error 20009 (severity 9):
      Unable to connect: Adaptive Server is unavailable or does not exist
      OS error 60, "Operation timed out"
There was a problem connecting to the server
A206394:~ ctaylor$ A206394:~ ctaylor$ ping
PING 56 data bytes
64 bytes from icmp_seq=0 ttl=126 time=2.077 ms
64 bytes from icmp_seq=1 ttl=126 time=5.150 ms
64 bytes from icmp_seq=2 ttl=126 time=5.064 ms
64 bytes from icmp_seq=3 ttl=126 time=5.970 ms
64 bytes from icmp_seq=4 ttl=126 time=4.544 ms
64 bytes from icmp_seq=5 ttl=126 time=5.174 ms
64 bytes from icmp_seq=6 ttl=126 time=5.063 ms
64 bytes from icmp_seq=7 ttl=126 time=4.873 ms
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Mark BullockQA EngineerCommented:
xoxomosAuthor Commented:
Thanks.  I do have SQLDeveloper that i've used to connect to an SQLServer on which i have a database userid/pw and that works fast and fine with both DBVisualizer and SQLDeveloper.  There are some other SQLServers on which I'm trying to access using Windows authentication.  I have a Windows logon but no SQLServer logon.  When i try Windows authentication with my Windows userid the test fails.  I'm guessing that is telling me i can use Windows authentication, but i still need a database account.  Please correct me if i'm wrong.  I know i can just go in and create a SQLServer account, but there is about a month long ritual that is SUPPOSED :-) to be followed before making any kind of change on production servers.   I'll start that process if you confirm that is in fact necessary.
The reason I need to get the tsql to connect is once that works, i can practice some python.
Mark BullockQA EngineerCommented:
Here are instructions for installing FreeTDS and unixODBC and querying from python

I saw an article on unixODBC which said that SQL Server must be configured with mixed mode authentication.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xoxomosAuthor Commented:
Thanks.  I do have server running in mixed mode.  I was hoping I could avoid the ODBC layer, but yes it has been looking like i will have to succumb after all.  I've gone through configuring the .conf file from version 7.0, 7.2 and 8.0.
Another thing i can't figure out is why when i run tsql -C , version always comes out as 5.0 regardless of what i put into the .conf file.
xoxomosAuthor Commented:
Thanks again.
xoxomosAuthor Commented:
Just got to the point in that richbs article where he says to try telnet.  That comes back with a clear 'unable to connect to host'
Mark BullockQA EngineerCommented:
What was the exact telnet command you used?
xoxomosAuthor Commented:
Ran telnet 1433.  Looked at a netstat and got some other ports that made the connection successfully.
Uninstalled all my sqlserver stuff , 2008,2010, 2012 etc  so i can reinstall just one instance.  I should have tried 1434 before uninstalling stuff though.
Mark BullockQA EngineerCommented:
The telnet command should be in the form
telnet server port
Mark BullockQA EngineerCommented:
telnet server portnumber
xoxomosAuthor Commented:
Sorry, that's what i did.  Tried server and IP, but i was using 1433 even though i had one version already running at 1433 when i installed a second (full trial) version which must have taken 1434.  Cleaned everything off and will be installing again later today.
Thanks again.
Dave BaldwinFixer of ProblemsCommented:
Port 1433 is usually used for a direct connection to the SQL Server.  Port 1434 is usually reserved for the 'sqlbrowser.exe' service which accepts server names like "MYSERVER\SQLSERVER" and connects to the correct "server instance".  This is more useful when there is more than one 'instance' on a server.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.