Solved

SQL to convert to upper case

Posted on 2008-10-27
8
2,943 Views
Last Modified: 2012-06-21
I need to convert a text in a field called "Bin" to upper case.  I am using Access 20007 front-end and SQL 2005 backend.   Example:
  Table - Inventory, Bin=abc
After convertion:
  Table - Inventory, Bin=ABC
0
Comment
Question by:schmir1
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 22816748
select BIN = upper(bin), otherfields
from yourtablename
0
 
LVL 75
ID: 22816773
SELECT BIN = UCase(BIN)
FROM YourTableName

mx
0
 
LVL 82

Expert Comment

by:hielo
ID: 22816775
Try:
SELECT UCase(BIN) as bin FROM Inventory
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 100 total points
ID: 22816785
If you're doing at the backend level, then you'll need to use UPPER.  If you're doing it at the front-end in Access, then you'll need to use UCASE.
0
 
LVL 75
ID: 22816786
UPDATE Table1 SET Table1.BIN= UCase([BIN]);

Make a backup first.

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 300 total points
ID: 22816799
UPDATE Inventory SET Inventory.BIN= UCase([BIN]);
0
 
LVL 44

Assisted Solution

by:GRayL
GRayL earned 100 total points
ID: 22816817
Update Inventory SET Bin = UCase(Bin);
0
 

Author Comment

by:schmir1
ID: 22817809
I used the Update Query because I want the changes saved.  I used the Access version but it is good to know the SQL 2005 version.  Thanks for all your help.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question