cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
younceb
Advocate I
Advocate I

Execute SQL Statement not accepting like operator with % wildcards on beginning and end of search string

Execute SQL Statement not accepting like operator with % wildcards on beginning and end of search string

 

It gives the complaint that the variable does not exist most likely due to that also being the variable notation in PAD.

 

Below query results in variable does not exist error:

 

SELECT PersonnelNumber, EmployeeName
FROM Table_Name where UserID like '%user_12345%';

 

 

Variable 'user_12345' doesn't exist.

 

PAD version: 2.6

 

2 REPLIES 2
alrez
Community Support
Community Support

Hi,

 

Thanks for your post! We will start looking into this and hopefully we can find a work around for this. This looks to be an issue with how Graph is processing double "%".

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

schneiderm
Regular Visitor

Using double % works well in my statements:

 

SELECT PersonnelNumber, EmployeeName
FROM Table_Name where UserID like '%%user_12345%%'

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,854)