Wednesday, February 6, 2013

Bizarre c# features : global


namespace hody
{
    public partial class Form1 : Form
    {


private void button6_Click(object sender, EventArgs e)
        {
            feh.showfeh();
            global::feh.showfeh(); 
        }

public static class feh
    {
        public static  void showfeh()
        {
            MessageBox.Show("feh");
        }
    }




//a different file

using System.Windows.Forms;


   public static class feh
    {
        public static void showfeh()
        {
            MessageBox.Show("global feh");
        }
    }


Checking parameter length in sp's



select pr.name, p.*, t.name, t.max_length
from sys.procedures pr
inner join sys.parameters p on pr.object_id = p.object_id
inner join sys.types t on p.system_type_id = t.system_type_id
where  p.max_length =24

Tuesday, February 5, 2013

what are the benefits of a service over a plain exe?

I guess the main point is that services are centralized.
otherwise, things like setting for start up can be done with exe's also.

is the event log a good place to log your application?

just wondering

Monday, February 4, 2013

How to update a project file's xml in VS

first -> unload project ->check out -> make changes-> check in->upload project

How to get list of Changesets

rick click on aspx file -> get specific version

why isn't there an easier way?

Designer page woes

I was copying .cs and aspx from one branch to another. The compile failed - the designer didn't regenerate.
This was even though I opened in designer and there were new components.