How do I connect to MSSQL 2008 database in Java with JDBC

Posted by shuxer on Stack Overflow See other posts from Stack Overflow or by shuxer
Published on 2010-03-16T03:11:41Z Indexed on 2010/03/16 11:16 UTC
Read the original article Hit count: 330

Filed under:
|
|

I have MSSQL 2008 installed on my local PC, and my Java application needs to connect to a MSSQL database. I am a new to MSSQL and I would like get some help on creating user login for my Java application and getting connection via JDBC. So far I tried to create a user login for my app and used following connection string, but I doesn't work at all. Any help and hint will be appreciated.

jdbc:jtds:sqlserver://127.0.0.1:1433/dotcms 
username="shuxer"  password="itarator"

© Stack Overflow or respective owner

Related posts about java

Related posts about jdbc