seadoggie01 Posted March 6, 2020 Posted March 6, 2020 (edited) This seems very strange, but I can't get it to work. I have this SQL which I expected to update all my rows to uppercase: UPDATE test_vendors SET name = UPPER(name) WHERE name != UPPER(name) COLLATE NOCASE; I've tried the above and the first two lines of the above, but every time I check the table again, the name is still lowercase. I tried wiping the table and inserting from the non-test table as well, but no rows are inserted: INSERT INTO test_vendors SELECT [...], UPPER(name), [...] FROM vendors; (The names are going to be matched against the IRS database which only checks capital letters anyways, so capitalization really doesn't matter) What am I missing? Edited March 6, 2020 by seadoggie01 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Nine Posted March 6, 2020 Posted March 6, 2020 remove COLLATE NOCASE from your update statement. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
seadoggie01 Posted March 9, 2020 Author Posted March 9, 2020 Looks like it was my own fault... I created the table to keep the name column unique, but it didn't check different cases. When I ran the SQL, it tried to update the names, but there was already a capitalized name, so it failed, but without an error in AutoIt. Thanks for the help though Nine All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now