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 |  
                                    | programmer89Starting Member
 
 
                                        4 Posts | 
                                            
                                            |  Posted - 2008-03-03 : 18:11:42 
 |  
                                            | Hello everyone. I wanted to learn to assign and change a schema names used in my table. I dont want a dbo. in my tables. I want to give a personal name like the adventureworks database has. (Such as sales.salesdetails, humanresources.employee and all)> So how i do create a table with a schema name salesand> How do i change my for example dbo.employee to sales.employee ??I triedCreate table sales.employee{statements}but it doesnt work...Please reply ASAPThanksinto the world of programming now :) |  |  
                                    | tkizerAlmighty SQL Goddess
 
 
                                    38200 Posts | 
                                        
                                          |  Posted - 2008-03-03 : 18:14:57 
 |  
                                          | Does the sales schema exist?Tara KizerMicrosoft MVP for Windows Server System - SQL Serverhttp://weblogs.sqlteam.com/tarad/ |  
                                          |  |  |  
                                    | programmer89Starting Member
 
 
                                    4 Posts | 
                                        
                                          |  Posted - 2008-03-03 : 18:32:27 
 |  
                                          | I wrote a command Create Schema salesThats it. And  have the tables..into the world of programming now :) |  
                                          |  |  |  
                                    | programmer89Starting Member
 
 
                                    4 Posts | 
                                        
                                          |  Posted - 2008-03-04 : 19:14:59 
 |  
                                          | anyone ??into the world of programming now :) |  
                                          |  |  |  
                                    | dataguru1971Master Smack Fu Yak Hacker
 
 
                                    1464 Posts |  |  
                                    | SwePesoPatron Saint of Lost Yaks
 
 
                                    30421 Posts | 
                                        
                                          |  Posted - 2008-03-04 : 19:26:57 
 |  
                                          | Reading Books Online says quote:The following example modifies the schema HumanResources by transferring the table Address from schema Person into the schema.
 USE AdventureWorks;GOALTER SCHEMA HumanResources TRANSFER Person.Address;GO 
 E 12°55'05.25"N 56°04'39.16"
 |  
                                          |  |  |  
                                    | programmer89Starting Member
 
 
                                    4 Posts | 
                                        
                                          |  Posted - 2008-03-05 : 18:52:52 
 |  
                                          | Got it to work !  into the world of programming now :) |  
                                          |  |  |  
                                |  |  |  |