Connect to Sybase #

Remember to install the Sybase OBBC drivers on the server.#


using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();
            conn.ConnectionString = "Driver={SYBASE ASE ODBC Driver};NetworkAddress=HOSTNAME, PORT;DB=DBNAME;UID=USER;PWD=PASSWORD";
            conn.Open();

            OdbcCommand command = new OdbcCommand();
            command.Connection = conn;
            command.CommandText = "select distinct M_LABEL, M_NAME from TRN_CPDF_DBF";
            command.CommandType = CommandType.Text;
            OdbcDataReader reader = command.ExecuteReader();
            
             while (reader.Read())
             {
                 Console.WriteLine(reader.GetValue(0).ToString() + reader.GetValue(1).ToString());
             }


Back to C#

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 24-May-2017 15:30 by UnknownAuthor
G’day (anonymous guest) My Prefs
  • View Page Source
  • This clear IPSec security association,
    clear ipsec sa peer X.X.X.X
    

All Pages

Page views: 2089

Private Tomcat

Linux

MySQL

Email

SQL Server

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

Gaming

ASP.NET

Persits ASPUpload

Wiki Help

Referring Pages:
...nobody

JSPWiki v2.8.1