JDBC connection to SQL Server 2005 with domain user
- From: "Rupert Woodman" <rupert.woodman@xxxxxxxxxxxxxx>
- Date: Thu, 1 Feb 2007 19:50:27 -0000
I can connect to a SQL Server 2005 database using the Microsoft JDBC driver,
using either a SQL Server user, or using the credentials of the user
currently logged in without any problems.
However, I want to login using a domain user, different to the user
currently logged in to the machine running the application.
I've tried using both URL connection strings and a Properties object, but I
can't get it to work. As soon as I specify "integratedSecurity=true", it
uses the credentials of the current user.
I'm sure it must be possible, but I couldn't find anything on Google.
Could someone give me a clue (or an example would be even better!) please?
Many thanks
.
- Follow-Ups:
- Re: JDBC connection to SQL Server 2005 with domain user
- From: joeNOSPAM@xxxxxxx
- Re: JDBC connection to SQL Server 2005 with domain user
- Prev by Date: Re: Cannot connect to one Oracle DB using JDBC
- Next by Date: Re: JDBC connection to SQL Server 2005 with domain user
- Previous by thread: Cannot connect to one Oracle DB using JDBC
- Next by thread: Re: JDBC connection to SQL Server 2005 with domain user
- Index(es):
Relevant Pages
|