I use windows authentication, and I want to connect to mssql server with jdbc with the syntax above, what should I set in the user and password fields?
type="JdbcDataSource" name="ds-1"
driver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://127.0.0.1;databaseName=AdventureWorks"
user="sa"
password="password"/>
You shouldn’t need to provide username and password since you are using Integrated Windows Auth, a google search lead me to this connection string:
Read more here: http://msdn.microsoft.com/en-us/library/ms378428.aspx