Below are the steps to configure ODBC Driver for SQL SERVER Database.
Prerequisites:
- ODBC driver with 64-bit version must be installed on your system (please install AccessDatabaseEngine_X64.exe from here).
- User must be able to access SQL database either by windows authentication or by SQL user name and password
Configure ODBC
- Open 64-bit ODBC App in your system
- Click on Add button
- Select SQL Server (as shown below) and click Finish.
- Enter a logical name for ODBC data source (1-Name is used in database block as "Connection" while accessing the database from Leapwork, 2-Enter meaningful description, 3- is the database server you want to connect with) afterward click Finish.
- Now next screen is meant for authentication, there can be two scenarios here:
- With Windows NT authentication using network login ID, if you can access your SQL server with your windows credentials (without entering other user name and password) then you need to use this option.
Note: If you choose this option then "Connection" in Leapwork database block should be defined as “SQL-DB” (as defined in step no 4 above. Please remember there should be No spaces in the before and after connection string).
- With SQL Server authentication using a login ID and password entered by user, if you require user name and password to access SQL then you need to use this option.
Note: If you choose this option then database connection in Leapwork should be defined as “DSN=TestEnvironment;Uid=UserName; PWD=for_defined_user;”
- After selecting Authentication choose the database you want to interact with this ODBC connection as shown below (attach database filename in case it is required) and press next.
- With Windows NT authentication using network login ID, if you can access your SQL server with your windows credentials (without entering other user name and password) then you need to use this option.
- Click Finish to complete the process.
- After pressing Finish user will see below screen. Press "Test Data Source" to test the connection.
- "TEST COMPLETED SUCCESSFULLY!!" message shown below shows that you are ready with connectivity.
Close all windows by pressing OK button, now you are ready to access the database using Leapwork.
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.