Click here to Skip to main content
15,896,111 members
Articles / Database Development / SQL Server

How to Integrate an OLE Object with SQL Server v2

Rate me:
Please Sign up or sign in to vote.
4.97/5 (20 votes)
22 Aug 2009CPOL5 min read 39.2K   229   24  
This article will give you an idea about how to integrate an OLE Object that is a COM+ API with SQL Server and write a message into a Windows event log.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OLEExample;

namespace ComTest
{
    public partial class frmComTest : Form
    {
        public frmComTest()
        {
            InitializeComponent();
        }

        private void ButtonGo_Click(object sender, EventArgs e)
        {
            OLEExample.ClsExample oOLE;
            oOLE = new ClsExample();
            oOLE.CreateLog("OLEExample"); 

        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions