| 
                
Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with. 
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | DURGESHPosting Yak  Master
 
 
                                        105 Posts | 
                                            
                                            |  Posted - 2009-03-12 : 04:57:04 
 |  
                                            | hi all,can anybody help me to convert the entire data of table in upper caseregardsDurgesh J |  |  
                                    | senthil_nagoreMaster Smack Fu Yak Hacker
 
 
                                    1007 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 04:59:40 
 |  
                                          | Do it column by column!update <tablename> set <column1>=upper(<column1>) |  
                                          |  |  |  
                                    | DURGESHPosting Yak  Master
 
 
                                    105 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 05:08:34 
 |  
                                          | Hi Senthil,Sorry not by using update statement.Can we set any constraint that should convert the data to upper case at the time of insertion.As I heard in D2k of oracle there is concept called property sheet by using this one can set the data in upper case. Is there any feature available in sql server 2000regardsDurgesh J |  
                                          |  |  |  
                                    | madhivananPremature Yak Congratulator
 
 
                                    22864 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 05:10:54 
 |  
                                          | You can make use of the result and use in updateselect column_name+'=upper('+column_name+'),' from information_schema.columnswhere table_name='table_name'MadhivananFailing to plan is Planning to fail |  
                                          |  |  |  
                                    | heavymindPosting Yak  Master
 
 
                                    115 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 05:19:19 
 |  
                                          | quote:I would think of a trigger to implement this...Thanks, VadymMCITP DBA 2005/2008Chief DBA at http://www.db-staff.comOriginally posted by DURGESH
 Hi Senthil,Sorry not by using update statement.Can we set any constraint that should convert the data to upper case at the time of insertion.As I heard in D2k of oracle there is concept called property sheet by using this one can set the data in upper case. Is there any feature available in sql server 2000regardsDurgesh J
 
 |  
                                          |  |  |  
                                    | DURGESHPosting Yak  Master
 
 
                                    105 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 05:22:15 
 |  
                                          | Sorry it is not my requirement i want to set some constraint at table level of at column level,such that when user enters data in lower case, it should get inserted in upper caseregardsDurgesh J |  
                                          |  |  |  
                                    | DURGESHPosting Yak  Master
 
 
                                    105 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 05:24:49 
 |  
                                          | If triggers were used, i will be performance issueregards Durgesh J |  
                                          |  |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2009-03-12 : 14:08:19 
 |  
                                          | quote:ideally, you shouldnt be concerned about case in which data is stored in table unless you use case sensitive collation. you can always use formatting functions available in front end to display data in whatever way you want (lower,upper,bold,..)Originally posted by DURGESH
 Sorry it is not my requirement i want to set some constraint at table level of at column level,such that when user enters data in lower case, it should get inserted in upper caseregardsDurgesh J
 
 |  
                                          |  |  |  
                                |  |  |  |  |  |