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  | 
                             
                            
                                    | 
                                         harrisw48 
                                        Starting Member 
                                         
                                        
                                        34 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2012-04-25 : 09:53:19
                                            
  | 
                                             
                                            
                                            | Im trying to create a global variable within SSIS that will hold a database and table so that i can use the variable in tsql script making it easier to change the values in the tsql when I want to change itI can do it outside by creating a sql script within a variable in the tsql code and then executing the script using sp_executesqlHow can I do this within SSIS?edit: moved to proper forum | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     visakh16 
                                    Very Important crosS Applying yaK Herder 
                                     
                                    
                                    52326 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2012-04-25 : 14:50:25
                                          
  | 
                                         
                                        
                                          | why do you need to pass table/db details from a variable? why is your table/db changing? If you're doing this to change db/table connections dynamically while package is migrated through various environments(dev,prod etc) then you should be using package configurations for this------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |