1

I am trying to connect to SQL server from iccube Web UI, but when I set up the Data Source connection like this

Name: TestDataBase
DriverType: SQL Server
ServerName: localhost
DB Name: TestDataBase

User: MyWindowsUserName
Password: ********** 

(my windows username and password).

, I got the following error:

JDBC connection for url 'jdbc:sqlserver://localhost:1433;databaseName=TestDataBase;' and user 'MyWindowsUsername' cannot be created due to error 'Login failed for user 'MyWindowsUsername'.

What am I missing, and can I somehow use integratedSecurity so I can login with my windows credentials as I do from SQL Server Management studio.

1
  • I have just managed to log in with SQL Server Authentication, just don't know if I can log in with Windows credentials. Commented Oct 3, 2018 at 13:14

2 Answers 2

1

You can try to setup the connection string as mentionned by Hermes (or here) using the "Server Name" and "DB Name" to define the actual JDBC class name and connection string (check the help icons closed to each fields):

enter image description here

Hope that helps.

Sign up to request clarification or add additional context in comments.

2 Comments

I made a progress, populated fields like on your picture but now I am getting an error: Failed to load tables from data source 'SQL Server' due to the following error: 'Database 'true' does not exist. Make sure that the name is entered correctly.'
After a while it turned out that it is order of connection parameters: with this connection string I succeded: jdbc:sqlserver://localhost;integratedSecurity=true;databaseName=TestDatabase - so databaseName must be in the last place, and it must not have ; at the end because it will be considered as a part of database name. So, thank you very much on your help!
1

Try jdbc:sqlserver://localhost:1433;databaseName=TestDataBase;integratedSecurity=true;

1 Comment

I wanted to do exactly that, but in this screen where I am putting this connection parameters, there is no option to enter or check integrated security. I have a problem with uploading picture of that screen, but I do not see that option.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.