LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2004, 01:13 PM   #1
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Rep: Reputation: 15
Question Java/M$ SQL Server


Hi everyone, thanks for taking time out to read this post. Now before I even go any further I just wanted to state that this question does involve MS SQL Server 2000, so if I am not in the right forum, please let me know. Now on to the problem.... I recently started to write a program for my Java class here at drexel. This project included accessing the serial port on the local machine and then authenticating some inforation that is passed throug the serial ort with a MS SQL server database.

I did some research, and I have found out that jTDS is the "best" *nix driver out for MS SQL server. So i installed the driver and started to program. The problem that I am gettuing is that my Linux machine running JBuilder 9 is not on my school domain. The SQL Server that i am trying to access hyowever is on a domain. It is set to use SQL server authentication so the Win NT stuff shouldnt be an issue. However every machine here at school, all win XP, are able to connect to the DB without a problem AS LONG AS THEY ARE ON THE DOMAIN, OR AS LONG AS YOU ARE LOGGED ON LOCALLY TO AN ACCOUNT THAT IS ALSO ON THE SQL BOX. Now this seems really out of wack to me. All the people that i work with have no idea how to allow a non domain computer to access the SQL server, especially a *nix box. This seems to be a problem that should be easily solved, but yet I have no idea where to start with this question. So please, if anyon can help me to figure out how I can connect that would be great.

The next resort int he eyes of the guy who admins the box is to make a MySQL server that replicates the SQL server and blah, blah, blah. The honest truth is that that seems to me like a whole different project to add to the current one i am working on. So any help at all is appreciated. Oh yeah, the error that i recieve in my program is that the connection is refused by the box runnign the SQL server.

Cheers

Geoff
 
Old 12-19-2004, 10:03 AM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
"The SQL Server that i am trying to access hyowever is on a domain. It is set to use SQL server authentication so the Win NT stuff shouldnt be an issue. However every machine here at school, all win XP, are able to connect to the DB without a problem AS LONG AS THEY ARE ON THE DOMAIN, OR AS LONG AS YOU ARE LOGGED ON LOCALLY TO AN ACCOUNT THAT IS ALSO ON THE SQL BOX."

I think that you're right - this is contradictory. SQL Server authentication means that there is an account listed within SQL Server itself (as other DBs handle users), which has nothing to do with Windows accounts on the local machine or the domain. Giving Windows accounts permissions within SQL is called "integrated authentication", if I remember correctly. I've never tried accessing SQL using a non-MS driver, but if jTDS won't support integrated authentication then adding a username/password in SQL itself is very easy.

If the DBAs aren't clear on how MS SQL Server works then replication is a really bad idea - it's complex and mapping fields between different brands of database can cause serious problems.

I suppose I ought to add that I've only worked with SQL Server 2000 (which is a complete rewrite). Previous versions were apparently a lot more problematic, in every possible way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
embedding sql in java pranith Programming 3 04-09-2010 09:08 AM
java.lang.InstantiationException: java.sql.Connection poeta_boy Programming 2 07-06-2005 08:26 PM
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
Sql Problem (java Program) keikun_naruchan Programming 1 06-03-2004 10:19 PM
How to create java.sql.Clob oblect prai Programming 0 10-14-2003 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration