See sql statement executed by netserver

November 21st, 2007

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

<add key=LogError value=true />
<add key=LogWarning value=true />
<add key=LogInformation value=true />
<add key=LogToFile value=True />
<add key=LogFolder value=C:\work />
<add key=EnableScaffolding value=True />

November 21st, 2007

Getting ODBC Connections in C#

March 2nd, 2006

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

March 1st, 2006

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

March 1st, 2006

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

February 23rd, 2006

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.