Home > Backend Development > PHP Tutorial > Access sql server without dsn_PHP tutorial

Access sql server without dsn_PHP tutorial

WBOY
Release: 2016-07-13 17:01:19
Original
892 people have browsed it

Just add the server and database driver to the connection string
Example:
dim conn
set conn = Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "driver= {SQL Server};"server=yourserver;uid=sa;pwd=pwd;database=pubs"
conn.open
Set cmd= Server.CreateObject("ADODB.Command")
Set cmd. ActiveConnection = conn

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631167.htmlTechArticleJust add the server and database driver to the connection string. Example: dim conn set conn = Server.CreateObject (ADODB.Connection) conn.ConnectionString = driver={SQL Serve...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template