Trouble Connecting to sql server Login failed. "The login is from an untrusted domain and cannot be used with Windows authentication" -


i trying host sql server database, whenever try connect error:

the login untrusted domain , cannot used windows authentication

i connecting through matlab using following command:

conn = database('clinical_data','doylelab07\acc','','com.microsoft.sqlserver.jdbc.sqlserverdriver','jdbc:sqlserver://doylelab07\sqlexpress:54287;database=clinical_data;integratedsecurity=true;'). 

connecting database using matlab worked fine long using matlab on computer using host server. however, when use computer , same matlab command error showed above.

when under control panel\system. notice no domain listed on host pc or pc using connect host, both computers in same workgroup. able fix problem creating domain , adding foreign pc , host domain? if so, how can accomplished?

any suggestions appreciated. thank reading post.

in order use windows authentication 1 of 2 things needs true:

  1. you executing same machine database server.
  2. you have active directory environment , user application executing under (usually logged in user) has rights connect database.

if neither of true have 1 of 2 things:

  1. establish windows domain controller, connect of relevant machines controller, fix sql server use domain accounts; or,
  2. change sql server use both windows , sql server accounts.

by far easiest way change sql server use both windows , sql server accounts. need create sql server user on db server , change connection string that.

best case option 1 take full day of installation , configuration. option 2 ought take 5 minutes.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -