Click here to Skip to main content
15,905,785 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi all, just want to find out how can i convert letters to upper case when inserting them into a table, ive already got the "text-transform" style on the textboxes that allows the user to only put upper case letters into the textboxs despite caps been on or off, but when caps is off even though it shows upper case in the textbox its still inserting it into the table as lower case letters how can i change this please
Posted

hi,
you can use 'upper' key word in sql when inserting values to table...

select upper('sankar')

answer
SANKAR
 
Share this answer
 
Comments
Wes101 19-Oct-12 7:10am    
but im not using select in my query, my query is as follows
<pre>INSERT INTO audit (member_id, date_time, table_name, field, old_value, new_value) VALUES (@member_id, @date_time, @table_name, @field, @old_value, @new_value)</pre>
Hello

You just use Upper keyword e.g. like

SQL
upper('abhimanyu')



Thanks
Abhimanyu
 
Share this answer
 
hi...

you use Toupper() methd for insert data in Upper case ininsert query you use Toupper() method behind and value for example if you insert TextBox value you use

-Ex-TxtName.Text.Toupper()

-this method convert TxtName.Text Value in Upper Case this way You can also Use for DropDownlsi

-Ex- drpnameprefix.SelectedItem.Text.ToUpper()


-so just Put Toupper()method and convert Any value in upper case and insert that value in database

Enjoy coding
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900