Script a table from a ODBC database with C#

0 Comments

If you want to create a corresponding SQL Server database table, from a ODBC table, you can use the following C# function: Note This function is not bullet proof, but gives you a simple example:

Extract contents of msi packages in C#

0 Comments

If you want to extract the contents of a msi package to filesystem, you can use the following C# function:   public void ExtractMsiPackage() {    string parameters = string.Empty; parameters = string.Format(@"/a {0} /qb TARGETDIR=""{1}""

How to run an existing SQL Server Agent Job from C#

4 Comments

If you want to execute an existing Microsoft SQL Server Agent Job in C# you an use the following function: The function uses SQL authentication to connect to the Microsoft SQL Server instance. using System;

Showing your log4net logging in your C# application

4 Comments

If you want to show the log4net logging direct in your application by using a textbox, you can use the following link: http://weblogs.asp.net/psteele/archive/2010/01/25/live-capture-of-log4net-logging.aspx I tried it and it works great:   using System; using System.Collections.Generic;