예제 #1
0
        public void Attach(DatabaseParameterBuffer dpb, string dataSource, int port, string database)
        {
            lock (this)
            {
                int[] statusVector = FesConnection.GetNewStatusVector();
                int   dbHandle     = 0;

                FbClient.isc_attach_database(
                    statusVector,
                    (short)database.Length,
                    database,
                    ref dbHandle,
                    (short)dpb.Length,
                    dpb.ToArray());

                this.handle = dbHandle;

                this.ParseStatusVector(statusVector);

                // Get server version
                this.serverVersion = this.GetServerVersion();
            }
        }