Tuesday, December 31, 2013

ssrs 2005

doesn't have quick totals - boo

Wednesday, December 25, 2013

Code to color all panels and tabs in a windows form



  private static void setColor(Control parent,System.Drawing.Color color)
        {
            foreach (Control C in parent.Controls)
         {
             Debug.WriteLine(C.Name); 
                if (C.GetType() == typeof(TabPage)||
                 C.GetType() == typeof(Panel)||
                 C.GetType() == typeof(SplitterPanel)
                 )
                
             {C.BackColor = color;
             Debug.WriteLine("writing color");
                
             }
             if(C.Controls.Count > 0)    
                {
                 setColor(C, color);
            }
          }
        }

Debug.Writeline

only works if the debug symbol is declared

Simple copy dtabase script in sql server 2005

BACKUP DATABASE blah
  TO DISK = 'd:\blah.bak'

RESTORE DATABASE blah_blah
  FROM DISK = 'd:\blah.bak'
  WITH MOVE 'blah' TO 'd:\databases\blah_blah.mdf',
  MOVE 'blah_log' TO 'd:\databases\blah_blah.ldf'

Wednesday, December 11, 2013

TFS Bizarre behavior

checking in a file that was lined to a task made the task closed - very wierd

Tuesday, December 10, 2013

duration

in the app is in milliseconds ; in output is microseconds

team city and comments

it appears that team city removes /**/ comments and keeps -- comments in stored procedures

the requested operation requires elevation

when running ipconfig /flushdns

run as admin

Thursday, December 5, 2013

Wednesday, December 4, 2013

Unexpected Error creating debug information file

i had this while trying to compile a project that was attached to a process