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  | 
                             
                            
                                    | 
                                         pnpsql 
                                        Posting Yak  Master 
                                         
                                        
                                        246 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2013-02-01 : 06:29:01
                                            
  | 
                                             
                                            
                                            | hi team,i have used  5 database in my application. now there are two sets of databases say first is of dec month and second is of nov month i have only one system and i want switch over both databses sets without dettaching other, because the switchich is freuentchallenge everything | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     visakh16 
                                    Very Important crosS Applying yaK Herder 
                                     
                                    
                                    52326 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-02-01 : 06:37:45
                                          
  | 
                                         
                                        
                                          | your explanation doesnt make any sense. switch database where? what determines which db to be used? do you've a parameter?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     pnpsql 
                                    Posting Yak  Master 
                                     
                                    
                                    246 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-02-01 : 08:26:42
                                          
  | 
                                         
                                        
                                          | sorry for incomplte details,i mean to say that i have two folders on my system dec_database_bkp  and jan_database_bkp   each folders contains 5-5 databases with same name only transaction data are diffrent.i want to connect ssms  first with dec_database_bkp and in between i want to conect ssms  with jan_database_bkp  without deattaching databases. i am nalysing and fixing some data issue sor i want this.challenge everything  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     James K 
                                    Master Smack Fu Yak Hacker 
                                     
                                    
                                    3873 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-02-01 : 09:01:47
                                          
  | 
                                         
                                        
                                          You can attach both databases to the same server (with different names) and then query against both databases using the 3-part naming convention. For example, you would write queries such as:SELECT	customerid,	lastnameFROM	dec_database_bkp.dbo.CustomersUNION SELECT	customerid,	lastnameFROM	jan_database_bkp.dbo.Customers You can do similar things for joining tables, views etc. as well.  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     pnpsql 
                                    Posting Yak  Master 
                                     
                                    
                                    246 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2013-02-01 : 10:24:43
                                          
  | 
                                         
                                        
                                          | hi vishak, any better clue.challenge everything  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |