Solved

SQL to convert to upper case

Posted on 2008-10-27
8
2,959 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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 - Microsoft MVP, Access and Data Platform) 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

685 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