Exemple #1
0
        void ShowDropScript(object sender, RoutedEventArgs e)
        {
            IndexComparer.BusinessObjects.IndexGroup ix = ((FrameworkElement)sender).DataContext as IndexComparer.BusinessObjects.IndexGroup;

            ScriptWindow sw = new ScriptWindow(String.Format("DROP Script For {0}", ix.SchemaAndTableName), ix.DropScript);

            sw.Show();
        }
Exemple #2
0
        void ShowSecondaryCreateScript(object sender, RoutedEventArgs e)
        {
            IndexComparer.BusinessObjects.IndexGroup ix = ((FrameworkElement)sender).DataContext as IndexComparer.BusinessObjects.IndexGroup;

            ScriptWindow sw = new ScriptWindow
                              (
                String.Format
                (
                    "CREATE Script For {0}.{1}.{2}",
                    ix.SecondaryIndexSet.ServerName,
                    ix.SecondaryIndexSet.DatabaseName,
                    ix.SchemaAndTableName
                ),
                ix.SecondaryIndexCreateScript
                              );

            sw.Show();
        }