Exemplo n.º 1
0
        /// <summary>
        /// Constructor including database server name, database name, username, and user password
        /// </summary>
        /// <param name="strServerName">Database server name</param>
        /// <param name="strDatabaseName">Database name</param>
        /// <param name="strUserId">Username</param>
        /// <param name="strPassword">User password</param>
        public SybaseFunctions(string strServerName, string strDatabaseName, string strUserId, string strPassword)
        {
            this.m_SybaseInfo = new SybaseConnectionInformation(strServerName, strDatabaseName, strUserId, strPassword);

            string strConnectionString = this.m_SybaseInfo.ConnectionString;

            this.m_Connection = new OdbcConnection(strConnectionString);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Default constructor including Sybase connection information object
        /// </summary>
        /// <param name="sybaseConnectionInformation">Sybase connection information object</param>
        public SybaseFunctions(SybaseConnectionInformation sybaseConnectionInformation)
        {
            this.m_SybaseInfo = sybaseConnectionInformation;

            string strConnectionString = this.m_SybaseInfo.ConnectionString;

            this.m_Connection = new OdbcConnection(strConnectionString);
        }