How to access records for a three-tier structure database
Source: Internet
Author: User
Three-tier (3-TIER) structure, the database may be located in another computer, and the Web server IIS for a different computer.
So how do you access the records of a three-tier database?
To access a database located on another computer, just through the network (Internet or intranet), the computer that installs the database is connected to the computer of the Web server IIS, and then, on the computer of the Web server IIS, installs the ODBC (or OLE DB) can be a driver.
For SQL Server databases, the ASP code for the database connection is as follows:
Set Conn = Server.CreateObject ("ADODB. Connection ")
Conn. Open "Driver={sql Server};D atabase= database name; server=202.96.144.216.; Uid=sa; Pwd= "
server= in ASP code ... The IP address of the database computer is set.
Reprint please keep the source http://asp123.on.net.cn
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