'[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user' error -


i trying connect local network sql server via excel vba run-time error:

[microsoft][odbc sql server driver][sql server]login failed user 'myuid'

when use connection string

connectionstring ="driver={sql server};server=mylocalserver; database=mydb;trusted_connection=yes;uid=myuid;pw=mypwd;"

i have windows authentication authentication method sql server.

do need sql , windows authentication? there wrong connection string?

if set uid , pw, it's more sql account. account exist in sql? when remove uid , pw, , replace trusted connection, it's using windows authentication. if this, make sure windows account has permissions in sql.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -