The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Connecting to SQL-Server using Windows Authentication"
spitfire_ch
Member Posts: 38 Maven
Hi again
I stumbled over the next problem which I can't figure out on my own. When I try to connect to MS SQL Server 2005, I choose DatabaseExampleSource, Microsoft SQL Server (JTDS), Data Loading Wizard. I enter Server- and Databsae name. Then, I am prompted to enter user and password. However, we are using Windows Authentication, and hence I don't have a username or password. I can try to enter nothing, which won't work, or I can try to enter my windows login data, which won't work neither.
What would be the proper way to connect to SQL Server, when it's using Windows Authentication?
Thank you very much for your help!
Greetings,
Hanspeter
I stumbled over the next problem which I can't figure out on my own. When I try to connect to MS SQL Server 2005, I choose DatabaseExampleSource, Microsoft SQL Server (JTDS), Data Loading Wizard. I enter Server- and Databsae name. Then, I am prompted to enter user and password. However, we are using Windows Authentication, and hence I don't have a username or password. I can try to enter nothing, which won't work, or I can try to enter my windows login data, which won't work neither.
What would be the proper way to connect to SQL Server, when it's using Windows Authentication?
Thank you very much for your help!
Greetings,
Hanspeter
0
Answers
unfortunately Microsofts JDBC driver doesn't support Windows Authentification: http://support.microsoft.com/kb/313100/en-us
So I think you will have to change the server's setting to mixed mode...
Greetings,
Sebastian
I am able to connect using Windows Authentication using Microsoft's SQL Server 2005 JDBC driver (not JTDS).
Use a URL of the form: jdbc:sqlserver://MYSERVER;integratedSecurity=true
You can specify any non-empty value for username and password and it should work (it doesn't have to be a real username/password, it just needs some dummy value so that RM doesn't complain or prompt for it):
thank you for this valuable information!
Greetings,
Sebastian
Where you mentioned the name of database such as master,northwind ...in this url "jdbc:sqlserver://MYSERVER;integratedSecurity=true"
Thanks
Ratheesan
http://msdn.microsoft.com/en-us/library/ms378428.aspx
If you're using a different version or a different driver, the syntax may not be identical, but you'll have to check the documentation for your specific driver to be sure.
Keith
Thanks for your help.Here I am using SQL Server 2005 with windows authentication.But when I am trying to connect the mentioned way I am getting the error message "Database error occurred: Invalid integratedSecurity property value:true ".Here I am attaching my process,can you help me.
<operator name="Root" class="Process" expanded="yes">
<operator name="DatabaseExampleSource" class="DatabaseExampleSource">
<parameter key="database_system" value="Microsoft SQL Server (Microsoft)"/>
<parameter key="database_url" value="jdbc:sqlserver://computer-647;integratedSecurity=true;databaseName=dummudb"/>
<parameter key="username" value="sa"/>
<parameter key="password" value="oyJzE6CCwSg="/>
<parameter key="query" value="select * from amb"/>
</operator>
</operator>
Thanks
Ratheesan
1) Is your SQL Server install configured to user Windows authentication?
2) Is sqljdbc_auth.dll in the Windows system directrory, or a directory listed in the PATH environment variable on the client?
3) Are you connecting from a non-Windows client?
Beyond those suggestions, you'll need to consult the Microsoft JDBC or SQL Server documentation.
1. using a named instance
2. using Windows authentication
http://www.youtube.com/user/VancouverData
"RapidMiner 5 Tutorial - Video 11 - Integration With SQL Server"
Thanks
Neil