ADO ConnectionString Property
Complete Connection Object Reference
The ConnectionString property sets or returns the details used to create a
connection to a data source.
Note: You can not use both the Provider and File Name parameters.
Syntax
|
objconn.ConnectionString="para1=value;para2=value;etc;"
|
The ConnectionString property has these parameters:
| Parameter |
Description |
| Provider |
The provider to use for the connection |
| File Name |
A provider-specific file that contains connection
information |
|
Remote Provider |
The provider to use when opening a client-side connection |
|
Remote Server |
A path name of the server to use when opening a client-side
connection |
| url |
An absolute URL identifying a resource, such as a file or
directory |
Example
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0"
conn.open server.mappath("database.mdb")
conn.close
%>
|
Complete Connection Object Reference

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file, Excel 2007, XBRL, or Web services data.
Then it transforms data instantly or auto-generates royalty-free data integration code for recurrent conversions.
New features in Version 2010!
Download a free, fully functional 30-day trial to experience the following features:
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
Download a fully-functional trial today!
|
|
|
|