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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 474
11manish 268
David_MA 243 Super User 2026 Season 1