Notifications
Announcements
I had sql connection variable in string format! how can i convert it and use in execute sql statement (SQL COnnection) ?
Hi @MitheshRpa ,
Please find the below solution.
Code:
SET Excel_A_File_Path TO $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\Practice\\Database\\Excel A.xlsx''' SET OLEDB_ConnectionString TO $'''Provider=Microsoft.ACE.OLEDB.12.0;Data Source=%Excel_A_File_Path%;Extended Properties=\"Excel 12.0 Xml;HDR=YES\";''' Database.Connect ConnectionString: OLEDB_ConnectionString Connection=> SQLConnection @@copilotGeneratedAction: 'False' Database.ExecuteSqlStatement.Execute Connection: SQLConnection Statement: $'''select * from [Sheet0$] WHERE [Type] <> \'e-Remito\';''' Timeout: 30 Result=> QueryResult Database.Close Connection: SQLConnection
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy
I had 10+ sql connection, I am using sql connection and storing the value in dictonary !!!
I want to call the connections which is in string format to sql connection data type
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 522 Super User 2025 Season 2
Tomac 364 Moderator
abm abm 243 Most Valuable Professional