hello everyone ,
has anyone worked to automate the excution of queries in SQL Developper Tool ?
i refer to queries such as : SELECT * FROM table WHERE date ;
then changing the “date” on this query once launching the robot ?
PS : Please do not hesitate to share videos or steps that could help me to develop this Use case
thank you in advance for your feedback
Thank you very match @Gokul001 Gokulfor your reactivity and for your appreciated feedback
Gokul001
(Gokul Balaji)
March 10, 2022, 2:29pm
4
Hi @Ben-Ziane_Hajar
Any Further query related to this topic?
Regards
Gokul
in fact , i’m still waiting for an answer regarding automating the execution of queries on SQL developer throughUIPATH ?
unfortunatly , the video and links provided are related to manual execution on SQL developer directly .
Gokul001
(Gokul Balaji)
March 10, 2022, 2:35pm
6
Asking about the activities to automate the sql query
Regards
Gokul
Gokul001
(Gokul Balaji)
March 10, 2022, 2:39pm
7
HI @Ben-Ziane_Hajar
If yes, Go to → Manage Package → Install (UiPath.Database.Activities)
Look into the document
Execute Query
Execute Non Query
UiPath.Database.Activities.ExecuteNonQuery Executes an non query statement on a database. For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. For all other types of statements, the return value...
Regards
Gokul
Thank you , it is very helpful … However , how can I connect UiPath to SQL Developper ? any idea ?
another question is that I can nnot see the SELECT activity among queries activities on UiPath … how can I have this activity to launch a SELECT * FROM query ?
thank you in advance for your time …
Gokul001
(Gokul Balaji)
March 10, 2022, 2:52pm
9
Take a “Connect Activity” . Click on Configure Connection .
[image]
It pops up a connection wizard . Click on Connection Wizard .
[image]
Click on above options redirects you another window . Select Microsoft SQL Server option . Click on OK.
[image]
Provide the server name ,provide the appropriate credentials (windows/sql authentication)
Once authenticated this displays the list of database . Select the Database and click on “Test Connection”.
[image]
For more details …
Use Execute Query activity → Select * from TableName
Regards
Gokul
Hi Ben-Ziane Hajar ,
you can look below link for Sql connection with UiPath and run select command and extract the data from database.
you can use below syntax for dynamic value pass to the select query.
SET @SQL = ‘SELECT ContactName FROM Customers WHERE CustomerId = ‘’’ + @CustId + ‘’‘’
@SQl : is variable to store the query.
ContactName : is table name
CustomerId : is a column where we are passing dynamic value.
I hope , this help for you to resolve/grow your knowledge in Sql Part.