I am using the following :
Code:
 Dim svr As Server = New Server()
to create a server object. In this case it connects to the default local server which in my case is a sql server 2000 instance on my local machine.

I am trying to create a server object for my sqlExpress 2005 installation on my local machine but for the life of me cannot figure it out.

I have tried :
Code:
Dim svr As Server = New Server(@"MACHINENAME\SQLEXPRESS")
but i get no joy.
It always fails to connect.

What am I doing wrong ?