Ultradev Instance Tutorial: 3.2 Creating a database connection

Source: Internet
Author: User
Tags define dsn odbc
Create | tutorials | data | database | database connection Chapter III: Application database to create dynamic Web pages

Section II: Creating a database connection


You see this title is not again, ah, why not to use Ultradev Ah, always engaged in these definitions to define to go, oh, do not worry, to use good ultradev, the use of the environment is to be set up, when the database connection settings are complete, we can do a variety of operations on the database. The connection here is related to the previous creation of the data source connection, and listen to my one by one-way.

Open Window-> Data bindings Panel



Click the Recordset (Query) to open the Recorset panel, as shown in the following illustration:



Since we have not established a database connection, so the connection column is not content, click Define to create a database connection, out of the screen as shown in the picture.



Click New-〉data Source Name (DSN) to create a fresh connection, and then open the dialog panel for the data source name connection. From the data source name (DSN) bar, you can see the name of the UserInfo name that we created earlier. Instead of opening the data Source (ODBC) dialog box from the Control Panel, you can open the data Source (ODBC) from the Define button here, and then create the same process. Select a good DSN, and then in the Connection Name column to fill in a name, convenient memory can be. Here named UserInfo, click OK after our database connection is done.



Created a good database connection:



There's content in the connection column, Drop-down Select the database connection you just created (userinfo), and then the table column will show you what tables are in your database, as shown in the chart, which shows the UserInfo table we created. Columns represents your data table field, by default all, or by selecting all the fields. Filter and Sort column We don't have it now, we'll talk about it later. After all this has been done, we have created a recordset, and then set up an easy name for this record, both in the Name column. Click OK.



Create a good recordset:



Now the preparation work has been done, the database has been connected, everything is only owed to the east wind, the next time let me tell you how to display the records inside the database.

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.