<property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="javax.persistence.jdbc.url" value="jdbc:sqlserver://localhost/my_db"/>
<property name="javax.persistence.jdbc.user" value=""/>
<property name="javax.persistence.jdbc.password" value=""/>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="hibernate.show_sql" value="true"/>
I am trying to connect to my local sql server by using this piece of configurating above. Mysql, oracle and postgresql work fine wtihout any problem but I do not really know how to connect to sql server since I have neither username nor password for it. I wrote something like this. "Data Source=myserver;Initial Catalog=mydb;Integrated Security=SSPI". How do I achieve this or anoher way to connect my localhost for sql server? Thanks