Solved

SQL to convert to upper case

Posted on 2008-10-27
8
2,951 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

838 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