Click here to Skip to main content
15,884,298 members
Articles / Programming Languages / SQL

The Lob Stream Framework, Part 2

Rate me:
Please Sign up or sign in to vote.
4.43/5 (5 votes)
9 Jul 2007CPOL17 min read 33.6K   331   23  
In this article, I build further on the foundation of Part 1 as I will actually implement a subclass of LobStream to manage binary/text data to and from an SQL Server Express database
#region Using
using System;
using System.Collections.Generic;
using System.Text;
#endregion
/*
 * LOBSTREAM FRAMEWORK
 * (c) Peter De Jonghe, Incalibration 2007
 * Check out the website for the latest updates of the framework.
 * http://www.incalibration.com
 * 
 * The LobStream Framework code is free. 
 * You may use it as you wish, with the sole restriction that you maintain the copyright notice here included. 
 * 
 * Disclaimer:
 * The LobStream Framework is provided "as is" without warranty of any kind, including, but not limited to, 
 * the implied warranties of merchantability and fitness for a particular purpose. 
 * The user assumes all responsibility for the accuracy and suitability of this program for a specific application. 
 * In no event will Incalibration, nor any of the authors of this code, be liable for any damages, including lost profits, lost savings, 
 * or other incidental or consequential damages arising from the use of or the inability to use this program. 
 * 
 * */
namespace LobStream
{
    /// <summary>
    /// LobDataType is an enumeration of the possible large object types in a database. The enumeration
    /// combines that type of database and the data type of the column that holds the lob.
    /// </summary>
    public enum LobDataType : int
    {
        Unknown = 0,
        SqlServerBinaryFromImage = 100,
        SqlServerBinaryFromVarBinary = 101,
        AccessBinaryFromImage = 200,
        SqlServerTextFromImage = 500,
        SqlServerTextFromVarBinary = 501,
        AccessTextFromImage = 600
    }
}

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)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions