• Topic
  • Discussion
  • UdaWikiWeb.CodeSamplesCSharp(Last) -- Owiki? , 2016-08-19 14:59:44 Edit owiki 2016-08-19 14:59:44

    C# Code Sample

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Diagnostics;
    using OpenLink.Data.**********;
    
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                OPLConnection conn = new OPLConnection("**********");
                conn.Open();
                conn.Close();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Debug.WriteLine(ex);
            }
        }
    }
    

    OpenLink.Data.Sybase

    Provider: using OpenLink.Data.Sybase;
    Connection String: "Host=<hostname>;Port=<port>;DATABASE=<database>;UID=<username>;PWD=<password>;"

    OpenLink.Data.SQLServer

    Provider: using OpenLink.Data.SQLServer;
    Connection String: "Host=<hostname>;Port=<port>;DATABASE=<database>;UID=<username>;PWD=<password>;"

    OpenLink.Data.ODBCClient

    Provider: using OpenLink.Data.OdbcClient;
    Connection String: "DSN=<odbc_dsn>;UID=<username>;PWD=<password>;"

    OpenLink.Data.GenericClient

    Provider: using OpenLink.Data.GenericClient;
    Connection String: "Host=<hostname>;Port=<port>;SVT=<server_type>;DATABASE=<database>;UID=<username>;PWD=<password>;OPTIONS=<connection_options"


    Referenced by...