Asp.net connection to the Interbase Database

Source: Internet
Author: User
Tags interbase
After searching for a long time, I always called the Asp.net connection to InterBase. I will share it with you .....
String strconn = "database = 127.0.0.1: D :\\ New Folder \ home_db.ib; Assembly = Borland. Data. Interbase, version = 2." +
"0.0.0, culture = neutral, publickeytoken = 91d62ebb5b0d1b1b; vendorclient = gds32.dll; Pro" +
"Vider = Interbase; username = sysdba; Password = masterkey"; // Interbase database connection string
Bdpconnection myconn = new bdpconnection (strconn); // open the connection.
Dataset mydataset = new dataset ();

String strseltype = "select * from board ";
Bdpdataadapter mydbadaptertype = new bdpdataadapter (strseltype, strconn );
Mydbadaptertype. Fill (mydataset, "Board ");
Datagrid1.datasource = mydataset. Tables ["board"];
Datagrid1.databind ();
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.