JDBC connection to SQL Server 2005 with domain user
- From: "Rupert Woodman" <rupert.woodman@xxxxxxxxxxxxxx>
- Date: Fri, 2 Feb 2007 18:46:07 -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 (I know the username and password - they never change),
different to the user
currently logged in to the machine running the application. I'm writing an
application for our automated build system and this domain user (and
password) is used for all aspects of the building. I really don't want to
have to create a user account on each SQL Server instance.
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. And if I don't do that, it seems
to require the use of a SQL Server 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
rgds
Rupert
.
- Follow-Ups:
- RE: JDBC connection to SQL Server 2005 with domain user
- From: Matt Weber [MSFT]
- RE: JDBC connection to SQL Server 2005 with domain user
- Prev by Date: Re: Good JDBC driver for SQL 2005 ?
- Next by Date: Re: Nesting Level - What should I expect when executing after prep
- Previous by thread: Re: Good JDBC driver for SQL 2005 ?
- Next by thread: RE: JDBC connection to SQL Server 2005 with domain user
- Index(es):
Relevant Pages
|