Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2007, 05:52 AM
Member
 
Join Date: Jul 2007
Posts: 1
mgt83 is on a distinguished road
SQL Server 2005 Jdbc connection
I just have a small question and I was wondering if anyone could help me out with it? I'm using a JSP page to connect up to the database on the server. I have the JDBC driver and am trying to connect from my machine to SQL Server 2005 on our server. The thing is I'm having a little trouble with the connection string.
(i am using the Microsoft SQL Server 2005 JDBC Driver)

Can you use Windows Authentication when using the connection string?

Also i tried using a SQL Server connection but it gave me the error : "com.microsoft.sqlserver.jdbc.SQLServerExcepti on: Login failed for user 'Matt'. The user is not associated with a trusted SQL Server connection. "

This is the connection string

Connection connection1 = java.sql.DriverManager.getConnection("jdbc:sqlserv er://"server":1433;Database=BusinessDatabase;User=Matt; Password=testpass");

(obviously "server" is replaced with the server name)

can you set it up for windows authentication?

thanks for any help anyone can give me with this!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate support for sql-server 2005 javadev Database 2 06-25-2008 02:48 PM
Java connecting to sql server 2005 pelegk2 Database 0 04-05-2008 10:17 PM
JDBC connection Java Tip Java Tips 0 11-10-2007 08:39 PM
How to close JDBC Connection Heather Database 2 07-15-2007 02:07 PM
JDBC driver connection problem creativehacker Database 3 07-10-2007 10:58 PM


All times are GMT +3. The time now is 01:23 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org