Gusse.net - To Blog or not to Blog

words from a crazy old fart

See sql statement executed by netserver

Posted on | November 21, 2007 | No Comments

If you want to see the sql statement you need to enable logging in the config file and enabled the line

<add key="EnableScaffolding" value="false"/>

Getting ODBC Connections in C#

Posted on | March 2, 2006 | No Comments

using Microsoft.Win32;

public static string [] GetODBCConnections()
{
RegistryKey rkey = Registry.LocalMachine;rkey = rkey.OpenSubKey(Software\\ODBC\\ODBC.INI\\ODBC Data Sources\\");
return rkey.GetValueNames();
}

Quick way to get connection string

Posted on | March 1, 2006 | No Comments

So, how do I build the connection string? Like this:

  1. Create a .txt file on your desktop 
  2. Rename it to .udl
  3. Double click it  and the Connection builder pops up 
  4. Rename it again to .txt and double click it  

Now you have the connection string ….

 

Anders Hejlsberg

Posted on | March 1, 2006 | No Comments

A great dane Anders Hejlsberg the man behind Turbo Pascal, Delphi and C#.

Look at this interview with the man himself..

channel9.msdn.com

One of my friends worked with Anders in the poly company and he have also worked for Borland. You can find his website at fihl.net - he his also a cool guy and have written a pascal compiler for palm in delphi. hspascal.fihl.net

His old friend from school Brian Eberhardt one-time told me that Anders never listened to the teachers but was always playing(programming) with his calculator and was thinking bit and bytes ;-)

Enterprise Library for .NET Framework 2.0

Posted on | February 23, 2006 | No Comments

The Enterprise Library for .NET Framework 2.0 have been released. See site http://msdn.microsoft.com/library/?url=/library/en-us/dnpag2/html/EntLib2.asp for more informations.