Skip to main content

Notifications

Power Automate - Power Automate Desktop
Unanswered

how to replace single quote with double quote in sql query while using power automate desktop

(0) ShareShare
ReportReport
Posted on by 160

select * from Table's

was we need to pass double quotes , i just want to replace in query itself

select * from Table''s

 

  • Deenuji_Loganathan_ Profile Picture
    Deenuji_Loganathan_ 6,075 on at
    Re: how to replace single quote with double quote in sql query while using power automate desktop

    @MitheshRpa 

     

    Could you please provide more details about your use case? Why do you need to replace double quotes with single ones? Even if you add them manually, wouldn't it work without any syntax issues? Could you elaborate on your use case so that we can assist you in a more appropriate manner?

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

     

     

  • VishnuReddy1997 Profile Picture
    VishnuReddy1997 2,192 on at
    Re: how to replace single quote with double quote in sql query while using power automate desktop

    Hi @MitheshRpa ,

     

    I don't think so we can do it. @Deenuji can you please confirm this.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • MitheshRpa Profile Picture
    MitheshRpa 160 on at
    Re: how to replace single quote with double quote in sql query while using power automate desktop

    Without using replace text activity , can i replace direcly in query ?

    MitheshRpa_0-1713863522408.png

     

  • VishnuReddy1997 Profile Picture
    VishnuReddy1997 2,192 on at
    Re: how to replace single quote with double quote in sql query while using power automate desktop

    Hi @MitheshRpa ,

     

    Please find the attached solution.

     

    VishnuReddy1997_0-1713861313058.png

     

    Code:

     

    Database.Connect ConnectionString: OLEDB_ConnectionString Connection=> SQLConnection
    Text.Replace Text: $'''select * from [Sheet0$] WHERE [Type] <> \'e-Remito\';''' TextToFind: $'''\'''' IsRegEx: False IgnoreCase: False ReplaceWith: $'''\"''' ActivateEscapeSequences: False Result=> Replaced_Query
    @@copilotGeneratedAction: 'False'
    Database.ExecuteSqlStatement.Execute Connection: SQLConnection Statement: Replaced_Query 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

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.

Helpful resources

Quick Links

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard