Hi David,

I tried that with empty strings for username and password but got this
error:

        Login failed for user ' '.
It seems we have to specify non-empty values for those attributes.
Thanks.


On Jan 16, 2008 8:56 PM, David Smith <[EMAIL PROTECTED]> wrote:

> What happens if you include them, but empty -- eg username=""
> password=""?  I don't configure my datasources without a username and
> password, so I've never actually tried it myself but it's worth trying.
>
> --David
>
> [EMAIL PROTECTED] wrote:
> > Hi everyone,
> >
> > The connection to SQL server in my machine is by default so username and
> > password are not needed to login. In this case, what should I specify in
> > <Resource.../> for username and password attributes? I tried not to
> include
> > them but got an error of "Login failed for user ''. The user is not
> > associated with a trusted SQL Server connection."
> >
> > <Context path="/DBTest" docBase="DBTest"
> >         debug="5" reloadable="true" crossContext="true">
> >   <Resource name="jdbc/EmployeeDB" auth="Container" type="
> > javax.sql.DataSource" username="<user name>" password="<pwd>"
> >   driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
> >   url="jdbc:sqlserver://localhost:1433;databaseName=EmployeeDB"
> >   maxActive="8" maxIdle="4"/>
> > </Context>
> >
> > Thanks.
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to