CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of oledb
C#
/*
 
DataSet myDataSet;
Example
 
If you have a common language runtime (CLR) object you would like to bind to from XAML, one way you can make the object available for binding is to define it as a resource and give it an x:Key. In the following example, you have a Person object with a string property named PersonName. The Person object is defined in the namespace called SDKSample.
XAML
Copy
 
<Window
by FoxyComputersLtd   April 24, 2010 @ 8:56am
272 Views
no comments
 
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Configuration;
 
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Data;
by Matt Slay   March 03, 2010 @ 12:56pm
334 Views
no comments
 
C#
using System;
using System.Collections;
using System.IO;
using System.Text;
 
namespace Handlers
{
    
    /// <summary>
    /// A data-reader style interface for reading Csv (and otherwise-char-separated) files.
by Utkarsh Puranik   February 23, 2010 @ 3:44am
799 Views
no comments
 
Imports System
Imports System.Collections
Imports System.IO
Imports System.Text
 
Namespace Handlers
 
    ''' <summary>
    ''' A data-reader style interface for reading Csv (and otherwise-char-separated) files.
    ''' </summary>
by Utkarsh Puranik   February 23, 2010 @ 3:43am
1927 Views
no comments
 
C#
using(OleDbConnection connection = new OleDbConnection(ConnectionString))
{
    using(OleDbCommand cmd = new OleDbCommand(sql, connection) { CommandType = CommandType.Text })
    { 
        try
        {
            connection.Open();
        }
        catch (OleDbException ex)
        {
by dereklawless   February 12, 2010 @ 6:25pm
165 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate